Reputation: 41919
I got the jQuery UI tutorial for the datepicker jquery tutorial and put it into this fiddlehere. If, in the fiddle, you drag the orange box into the white box, the datepicker form appears, but if you focus on the form with the mouse, the calendar doesn't show --in the jQuery tutorial, the calendar shows if you focus on the form.
Am I doing something wrong?
Upvotes: 0
Views: 128
Reputation: 24969
The problem is that you're not calling .datepicker()
on your input. When you focus on the input field, there's nothing to do. You need to add $("#datepicker").datepicker();
.
Here's an updated version of your code: http://jsfiddle.net/PTtzv/.
Upvotes: 1