2

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>
8
  • Any errors in your JavaScript console? Commented Apr 7, 2011 at 4:46
  • I had copied your code and pasted in Jsfilldle and it worked fine for me... Here is the link jsfiddle.net/shabirgilkar/Ys4y7 Commented Apr 7, 2011 at 4:49
  • then why is it not working for me ? Commented Apr 7, 2011 at 4:52
  • is there any other javascript library like mootools, prototype, dojo etc... also on same page?? Commented Apr 7, 2011 at 4:54
  • Maybe your browser can't load ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js? from googleapis. Try to move it to your server Commented Apr 7, 2011 at 4:54

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.