Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery date picker function isn't working

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');
    });
like image 835
kapil Avatar asked Nov 01 '22 13:11

kapil


1 Answers

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"

like image 55
Mike Ramsey Avatar answered Nov 09 '22 12:11

Mike Ramsey