2
嗨,我打這個錯誤「$(」#datepicker「)。datepicker不是一個函數」。之前它對我來說非常完美。但是,當我今天打開我的應用程序時,它遇到了這個錯誤。我不明白我出錯的地方。有人可以幫我解決這個問題嗎?將粘貼我的代碼在這裏。jQuery錯誤 - datepicker不是函數()?
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
</head>
<body>
<tr>
<td>Birthday</td>
<td><input type="text" name="birthday" id='datepicker' value="" maxlength="100" />
</td>
</tr>
<tr>
</body>
JavaScript控制檯中的任何錯誤? – Pointy 2011-04-07 04:46:19
是否有任何其他'JavaScript庫'像mootools,原型,道場等...也在同一頁? – diEcho 2011-04-07 04:54:33
nopes ...我沒有使用任何其他庫.. – 2011-04-07 05:12:47