Created
August 28, 2015 02:46
-
-
Save Red4x/121f2e7b50cb1fe18277 to your computer and use it in GitHub Desktop.
Datepicker Bootstrap
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
<form id="" method="post" class="form-horizontal"> | |
<div class="form-group"> | |
<label class="col-xs-3 control-label">Date</label> | |
<div class="col-xs-5 date"> | |
<div class="input-group input-append date" id="weekYear"> | |
<input type="text" class="form-control" name="date" value="MM / YYYY" /> | |
<span class="input-group-addon add-on"><span class="glyphicon glyphicon-calendar"></span></span> | |
</div> | |
</div> | |
<button type="submit" class="btn btn-default">Proceed</button> | |
</div> | |
</form> |
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
$('#weekYear').datepicker( | |
{ | |
todayHighlight: true, | |
format: "mm-yyyy", | |
viewMode: "months", | |
minViewMode: "months" | |
}); | |
$("#weekYear").on("changeDate", function(event) { | |
}); |
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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.min.js"></script> |
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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker3.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment