i have a issue which is other than CAKE, i hope some on group will
definitely help me,
Issue:
i have two date picker in on form, one is "START" and another is
"END". in date picker the min date i have given is current date. now i
want to set the min date of "END" date picker as per "START" date
jQuery(function() {
var currentTime = new Date();
var year = currentTime.getFullYear()+2;
$("#date").datepicker({minDate: new Date(),dateFormat:('dd-mm-
yy'),showOn: 'button', buttonImage: basePath+'img/
calendar.gif',constrainInput:true, buttonImageOnly:
true,changeMonth:true,changeYear:true,yearRange: '1920:'+year'
onSelect:function(dateText, inst){alert("The current date select
is"+" "+$('#date').val())
}
})
});
jQuery(function() {
var currentTime = new Date();
var year = currentTime.getFullYear()+2;
$("#dob").datepicker({minDate: new Date(),dateFormat:('dd-mm-
yy'),showOn: 'button', buttonImage: basePath+'img/
calendar.gif',constrainInput:true, buttonImageOnly:
true,changeMonth:true,changeYear:true,yearRange: '1920:'+year
});
});
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment