简体   繁体   中英

daterangepicker NotWorking in bootstrap model popup

Daterangepicker not working in a bootstrap model popup Here the working in HTML page jsfiddle link

[https://jsfiddle.net/150q2k7t/14/][1]

And I tried in Model It is not working

[http://jsfiddle.net/npb28m6z/3/][1]

Your jsfiddle is missing the required dependencies (resources).

You should include them after bootstrap, in this specific order:

https://cdn.jsdelivr.net/momentjs/latest/moment.min.js https://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css https://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.js

In order to add them, you click Resources in the sidebar and then type the address and click the plus button (+) :

资源按钮

带有资源的侧栏

Check it out on this fiddle:

https://jsfiddle.net/5pytk1gh/

[http://jsfiddle.net/npb28m6z/3/][1]

Just add to the Resources moment.js and daterangepicker.js dependencies.
Like you did it here - [https://jsfiddle.net/150q2k7t/14/][1] .

在此处输入图片说明 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM