Reputation: 21
Bootstrap Datepicker 4.15.35 works well with Bootstrap 3.3.7, jQuery 1.11.0, and Moment 2.10.6. But I would like to base my project on Bootstrap 4.0.0 and jQuery 3.1.1.
Does anyone now a combination that works?
Upvotes: 2
Views: 14862
Reputation: 3950
even this simple code will do:
<form action="/yourpage.php">
Birthday:
<input type="date" name="bday">
<input type="submit">
</form>
Upvotes: 0
Reputation: 394
Here you go..
$('#datepicker').datepicker();
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.standalone.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.min.js"></script>
<div class="container">
<div class="input-group date">
<input type="text" class="form-control" id="datepicker" placeholder="MM/DD/YYYY">
</div>
</div>
Hope this help you good luck..
Upvotes: 4