DatePicker AltField Problem
Hello everyone.
I've successfully implemented the datepicker plugin as an inline element that populates an alternate field. The PHP/MySQL back-end may or may not generate an existing date. If a date is set, it becomes the defaultValue for the plugin as well as the value for the input field. Otherwise, the defaultValue is the current date.
The calendar itself is correctly moving to the selected date (if set), however the altField text input does not populate the value. The altField is a simple input and I'm setting the value, but it never appears in the text box itself. I've toyed around with every combination of the jQuery I can, but I'm stumped! Any help would be greatly appreciated!
<script>
$(document).ready(function(){
$(function(){
$('#datepicker').datepicker({altField:'#date',minDate:new Date(),dateFormat:'yy-mm-dd',defaultDate:new Date(2010,9,16)});
});
});
</script>