I'm trying to use datepicker. My code matches the demo perfectly. It's just not doing anything. Can anyone help me out? The only thing I can think of is that my header is called with PHP. Is this a problem for jQuery?
This is my header:
<head>
<link rel="stylesheet" href="resources/jquery/calendar/themes/base/jquery.ui.all.css">
<script src="resources/jquery/calendar/jquery-1.6.2.min.js"></script>
<script src="resources/jquery/calendar/jquery.ui.core.js"></script>
<script src="resources/jquery/calendar/jquery.ui.widget.js"></script>
<script src="resources/jquery/calendar/jquery.ui.datepicker.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
This is my code:
<input type="text" id="datepicker" class="hasDatepicker">