Bootstrap 3 datetimepicker events not firing up

前端 未结 4 1936
心在旅途
心在旅途 2020-12-09 00:53

I am using Bootstrap 3 DateTimePicker and I am trying example 8 (Linked datetimepicker).

4条回答
  •  清歌不尽
    2020-12-09 01:46

    This may seem silly, but did you check you're using the same bootstrap-datetimepicker.js plugin that you're referring to in your question?

    There are two versions I know of which are very similar:

    1. The version you provided in your question: http://eonasdan.github.io/bootstrap-datetimepicker/
    2. A slightly different version: http://www.eyecon.ro/bootstrap-datepicker/

    The first version responds to change.dp, while the second version responds to dp.change.

    Just check the comments at the top of the bootstrap-datetimepicker.js to see which one you're using.

提交回复
热议问题