Last active
May 23, 2016 19:53
-
-
Save MFry/2f4deab6d438f80ad258ad01b4aca8bf to your computer and use it in GitHub Desktop.
Usage and getting started with Bootstrap Datepicker
This file contains hidden or 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
//In HTML: | |
//<div id="sandbox-container"><input type="text" class="form-control"></div> | |
//SCRIPT: | |
$('#sandbox-container input').datepicker({ | |
}).on('changeDate', function (event){ | |
var t = event['dates']; | |
//t is a JavaScript Date Reference link: http://www.w3schools.com/jsref/jsref_obj_date.asp | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment