DatePicker element doesn't render when attached to an input field
Hello,
Here is my javascript code:
"ContactDate" is an input field and "datePicker" is a regular div.
$c = jQuery.noConflict();
$c(document).ready(function(){
$c("#ContactDate").datepicker();
$c("#ContactDate").val('foo');
$c("#datePicker").datepicker();
});
When I click into ContactDate, nothing happens - I'm expecting a
calendar to appear, but it does not. The calendar renders as expected
within datePicker, so I know the plugin and requisite core libraries
are being loaded. The .val() call is to verify that the selector is
working correctly (it is).
I'm not sure what else to do here. I get no errors, it just simply
doesn't show the calendar. If it helps, I'm doing pretty much exactly
the same thing as the example shown here: http://jqueryui.com/demos/datepicker/
Any advice would be appreciated - thanks!