bootstrap datetimepicker installation

前端 未结 1 1995
南旧
南旧 2021-01-29 02:58

I am using bootstrap datetimepicker version 3. Here datetimepicker de-faulty taking current date and time. But in next version this problem is resolved. So I will try to use Eon

1条回答
  •  感动是毒
    2021-01-29 03:40

    Check manual installation guide here.

    You must include:

    • jQuery
    • Moment.js
    • Bootstrap + collapse + transitions

    So the files needed would be:

    • bootstrap.min.js
    • bootstrap.min.css
    • moment-with-locales.js
    • bootstrap-datetimepicker.css
    • bootstrap-datetimepicker.js

    Check this fiddle for a working example.

    HTML:


    datetimepicker1

    JS:

    $('#datetimepicker1').datetimepicker();
    

    0 讨论(0)
提交回复
热议问题