Skip to content

Instantly share code, notes, and snippets.

@zaynetro
Created December 6, 2015 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaynetro/b575f0dc428bbbf9c810 to your computer and use it in GitHub Desktop.
Save zaynetro/b575f0dc428bbbf9c810 to your computer and use it in GitHub Desktop.
Bootstrap date picker example
<html>
<body>
<div id="elem"></div>
<script src="./bundle.js" async></script>
</body>
</html>
var $ = require('jquery');
require('bootstrap-datepicker');
$('#elem').datepicker();
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