Re-initialize or destroy Bootstrap datepicker dynamically

前端 未结 5 1931
别跟我提以往
别跟我提以往 2021-02-05 06:19

Is there a way to destroy the Bootstrap datepicker dynamically updating its options like format, beforeShowDay, etc.? I know that the jQuery UI datepicker has a destroy method b

5条回答
  •  旧巷少年郎
    2021-02-05 07:11

    I actually found it more to just remove the element's ID, clone it, and add the ID back in.

提交回复
热议问题