jQuery Datepicker for multiple inputs

前端 未结 8 1808
忘了有多久
忘了有多久 2021-01-04 16:47

I have a jQuery datepicker script:

$(function() {
    $( \"#datepicker\" ).datepicker({ dateFormat: \"yyyy-mm-dd\" });         


        
8条回答
  •  萌比男神i
    2021-01-04 16:52

    
    
    

    Just get input fields using #id and apply datepicker.

    $(function() {
        $( "#datepicker1, #datepicker2" ).datepicker({ dateFormat: "yy-mm-dd" });
    });
    

提交回复
热议问题