Response title
This is preview!
I am using date picker from Jquery. Where currently I facing a problem By default range of the calendar has to show from 1900 - 2100 years. The system should accept the date minimum 10 year previous from todays date for example .1900 - 2000 years if the user select after 2001 jan by mistaken error class should prompt
I am bit confused how to do I tried with min year & max year but If i gave year range as 1900 to 2015 calendar was showing till 2015 sep only but i want to show till 2100
$("#txt_dob").datepicker({
dateFormat: "mm-dd-yy",
changeMonth: true,
changeYear: true,
//showButtonPanel: true,
yearRange: '-115:+10',
beforeShow: function () {
setTimeout(function (){
$('.ui-datepicker').css('z-index', 99999999999999);
}, 0);
},
}).on('change', function() {
if($('#txt_dob').valid()){
$('#txt_dob').removeClass('errRed');
}
// triggers the validation test on change
});
Here is the jsbin http://jsbin.com/jituse/edit?html,js,output
Any help guys please
Thanks
& Regards,
M
© 2013 jQuery Foundation
Sponsored by and others.