I try to implement jQuery calender at my homepage: This is the way I do it:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<script src="jquery-1.7.1.js"></script>
<script src="jquery.ui.core"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.datepicker.js"></script>
<script src="core.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<body>
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div>
</body>
</html>
In the same folder I have all the javascripts that are required. But when I try to click inside the form, no calendar is showing. Why? Thanks!
You should also specify
typefor your script tags. Have a look at this jsfiddle.