Apply jQuery datepicker to multiple instances

后端 未结 12 2325
时光说笑
时光说笑 2020-11-27 14:04

I\'ve got a jQuery date picker control that works fine for once instance, but I\'m not sure how to get it to work for multiple instances.



        
12条回答
  •  春和景丽
    2020-11-27 14:42

    html:

    
    
    
    

    script:

    $('.datepick').each(function(){
        $(this).datepicker();
    });
    

    (pseudo coded up a bit to keep it simpler)

提交回复
热议问题