onClose and datepick with jQuery
Posted
by Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2010-03-29T20:56:55Z
Indexed on
2010/03/29
21:03 UTC
Read the original article
Hit count: 234
jquery-datepicker
|jquery-ui
I have the following code:
$('#popupDatepickerWeekly').datepick({
maxDate:'1Y',
mandatory:true,
highlightWeek:true,
onClose: closedDate
});
My closedDate function looks like this:
function closedDate(value, date, inst) {
document.signUpForm.repeatUntil.value = value;
}
But when I pick a date using the datepicker, the repeatUntil hidden value is not set.
The hidden form field looks like this:
I don't get an error or anything, but it always comes back as an empty string.
© Stack Overflow or respective owner