In the past the systems I have built have used the jQuery datepicker and it worked great. Recently I decided to move to using twitter bootstrap for my designs and quickly learned that it doesn't like the jQuery UI.
I'm trying to get http://www.eyecon.ro/bootstrap-datepicker/ working at the moment.
I've viewed all the similar questions and their solutions, but cannot seem to find any that directly apply to my situation.
The JavaScript:
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link rel="icon" type="image/ico" href="../images/favicon.ico">
<script type="text/javascript" src="js/tinybox.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script>
$('#date').datepicker();
function delete(id)
{
var r=confirm("Are you sure you want to delete?")
if (r==true)
{
location.href = "delete.php?id=" + id;
}
}
function single(id)
{
TINY.box.show({iframe:'../view.php?id=' + id,boxid:'frameless',width:550,height:170,fixed:false,maskid:'bluemask',maskopacity:40,closejs:function(){closeJS()}})
}
</script>
The html:
<input name="date" class="src_date" type="textarea" placeholder="DD-MM-YYYY" id="date" required>
I have also tried with the JS:
$(function() {
$("#date").datepicker({dateFormat: 'dd-mm-yyyy'});
});