Home › Forums › Guriddo jqGrid JS › Help › set a range for datepicker
i use datepicker for birthdate’s field..
can i set a range for my datepicker.. for example, range for “year” between 1950 till 1990.. how can i make it? thx
Hello,
Not a jqGrid problem.
Regards
Tony
thanx for your reply.. but can you help me to give some solutions?
You can view an example here:
http://jqueryui.com/demos/datepicker/#min-max
i hv tried the code..
$(“#datepicker”).datepicker({minDate: -20, maxDate: ‘+1M +10D’});
but it didn’t work.. the datepicker didn’t appear at all..
anybody help me pliz.. i really need your help for this problem
What about to ask the developer of this plugin?
how can i set a range for datepicker? thx b4
Try this:
$(“#datefield”).datepicker({
it can’t work..
it makes the date become read-only..
for some reason
getYear is a bad idea, MSIE works different then FF. better use getFullYear, which works the same in all browsers and always returns 4 digits
i hv try both, but it can’t solved my problem yet.. please help me..
sorry, i’m a newbie in jquery thanx for the help
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS