Apply jQuery datepicker to multiple instances

后端 未结 12 2339
时光说笑
时光说笑 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条回答
  •  萌比男神i
    2020-11-27 14:32

    I just had the same problem.

    The correct way to use date pick is $('.my_class').datepicker(); but you need to make sure you don't assign the same ID to multiple datepickers.

提交回复
热议问题