jquery Datepicker doesn't work in my code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" type="text/css" href="static/css/start/jquery-ui-1.8.16.custom.css"/>
<script type="text/javascript" src="static/js/jquery-1.6.2.min.js"></script>
<!-- here are others script i use -->
<script type="text/javascript" src="static/js/date.js"></script>
<script type="text/javascript" src="static/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="static/js/jquery.ui.datepicker.js"></script>
</head>
<body>
<div id="mainHome" >
<!-- bla bla more code... -->
<div id="content">
<h1>Add new project</h1>
<form action="" id="form2">
<table>
<tr>
<td class="right">Project Title</td>
<td><input type="text" class="textproject" name="projecttitle"/></td>
</tr>
<tr>
<td class="right">Acronym</td>
<td><input type="text" class="textproject" name="acronym"/></td>
</tr>
<tr>
<td class="right">Start date</td>
<td><input id="datepicker" type="text" class="textdate" name="startdate" /></td>
</tr>
<tr>
<td class="right">End date</td>
<td><input type="text" class="textdate" name="enddate" /></td>
</tr>
<tr>
<!-- other html code -->
</table>
</form>
</div>
<--! other html code -->
</body>
</html>
i did't put all the code. in the file .js called date.js i have:
$(document).ready( function() {
$("#datepicker").datepicker();
});
i tried everything but i still doesn't work!
edit: I understand what the problem is. In addition to using the library for the calendar, I'm also using a library for an overlay effect. Depending on the order of how I include the files or does one or the other but it does not work together. This is the code:
<script type="text/javascript" src="static/js/jquery-1.6.2.min.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js">/script>
<script type="text/javascript" src="static/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="static/js/date.js"></script>