Reputation: 2403
Hi i am hit with this error " $("#datepicker").datepicker is not a function " . It was working perfect for me before. However when i opened my application today, its hit with this error. I am not getting where i went wrong. Can somebody help me to solve this. Will paste my code here.
<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>
Upvotes: 2
Views: 7120
Reputation: 2403
I got it fixed.. It was a small ignorance from my side. The jqury.js file was referred in another page which was extended from {% facebook_connect_script %}
. Thanks a lot for you guys help.
Upvotes: 1