Jquery datepicker years change

后端 未结 5 1185
Happy的楠姐
Happy的楠姐 2021-02-11 23:09

I am using datepicker of jquery for a field to set date of birth, while default picker is displayed which gives option to scroll to date monthly and sounds tedious. Is there a w

5条回答
  •  醉话见心
    2021-02-11 23:31

    Insert changeYear: true on your DataPicker parameter.

    Example :

    $(function() {
            $( ".datepicker" ).datepicker({
                changeMonth: true,
                changeYear: true
            });
        });
    

提交回复
热议问题