Bootstrap: How to add dropdown.less?

10,514

You have to download and include the following assets.

CSS

http://getbootstrap.com/2.3.2/assets/css/bootstrap.css

http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css

http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/css/datepicker.css

JS

http://code.jquery.com/jquery.js

http://getbootstrap.com/2.3.2/assets/js/bootstrap.js

http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/js/bootstrap-datepicker.js

Then in html, use like this.

<input data-provide="datepicker">

Demo here

Please note that, I have given bootstrap 2.3 here.

Share:
10,514
FrancescoMussi
Author by

FrancescoMussi

Full-stack developer based in Riga, Latvia. Hope Socrates is proud of my Socratic badge on StackOverflow.

Updated on July 08, 2022

Comments

  • FrancescoMussi
    FrancescoMussi almost 2 years

    I need to add a calendar into a form. I want to install this project: https://github.com/vitalets/bootstrap-datepicker

    But it is said that: Requires bootstrap’s dropdown component (dropdowns.less) for some styles, and bootstrap’s sprites (sprites.less and associated images) for arrows.

    How can i add that files to my app?

    Thank you very much!

  • FreeAsInBeer
    FreeAsInBeer over 9 years
    This doesn't include the optional CSS for arrow images, etc.
  • Romeo Sierra
    Romeo Sierra almost 6 years
    Demo given here is not functional. It takes you to a fiddle, but it is broken/not implemented properly.
  • Lee
    Lee over 3 years
    This answer doesn't provide the files asked for (sprites and dropdown)