So i installed the datepicker with the dual date range calendars.
everything seems to work fine. i can select the date and it populates
the input field so on and so on....
problem im having is I need it the update the input value field so i
can submit a form in my rails app that is looking for an update from
the input field.
i select the dates and then view source and the value="" is
still nil.
anyhelp would be fantastic..
here are the 2 pieces of js
jQuery(document).ready(function(){
jQuery("#startDate,#endDate").datepicker({
beforeShow: customRange,
showOn: "both",
buttonImage: "/images/calendar_date_select/calendar.gif",
buttonImageOnly: true
});
});
function customRange(input) {
return {
minDate: (input.id == "endDate" ? jQuery
("#startDate").datepicker("getDate") : null),
maxDate: (input.id == "startDate" ? jQuery
("#endDate").datepicker("getDate") : null)
};
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---