JSFiddle - React, Tailwind, and code Playground
by greatghoul
HTML
<script src="http://www.eyecon.ro/datepicker/js/datepicker.js"></script>
<link rel="stylesheet" href="http://www.eyecon.ro/datepicker/css/datepicker.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css">
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
</head>
<body>
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">Ă—</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<input type="text" class="datepicker1" />
<input type="text" class="datepicker2" />
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</body>
</html>
JavaScript
$(function() {
$('.datepicker1').DatePicker({
date: '2008-07-31',
current: '2008-07-31',
calendars: 1,
starts: 1
});
$('.datepicker2').DatePicker({
date: '2008-07-31',
current: '2008-07-31',
calendars: 1,
starts: 1,
onBeforeShow: function(picker) {
$(picker).css('z-index', 9999);
}
});
});