Created
December 6, 2015 11:47
-
-
Save zaynetro/b575f0dc428bbbf9c810 to your computer and use it in GitHub Desktop.
Bootstrap date picker example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="elem"></div> | |
<script src="./bundle.js" async></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = require('jquery'); | |
require('bootstrap-datepicker'); | |
$('#elem').datepicker(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init | |
npm i --save browserify jquery bootstrap-datepicker live-server | |
./node_modules/.bin/browserify main.js -o bundle.js | |
./node_modules/.bin/live-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment