i'm using this jquery date picker function, it works fine if i remove "year range:1930" from it, but doesn't work if i include year range. i dont know how to deal with this problem. help me.
<script type="text/javascript">
jQuery(function ($) {
$('input[name="dob1"]').datepicker({
"dateFormat": "mm/dd/yy",
"firstDay": "1",
"changeMonth": true,
"changeYear": true,
"yearRange": "1930"
}).datepicker('option', 'onSelect', function () {
$(this).removeClass('watermark');
});
Change your "yearRange": "1930" to "yearRange": "1930:+0"
or if you want it to start at 1930 and go forever set it to "1930:9999"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With