jQuery Datepicker for multiple inputs

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

I have a jQuery datepicker script:

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


        
8条回答
  •  旧巷少年郎
    2021-01-04 16:59

    Tired of repeating this, but still, am repeating it once more. ids have to be unique. So, use this:

    
    
    

    with

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

提交回复
热议问题