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:
<input type="hidden" name="repeatUntil" value="">
I don't get an error or anything, but it always comes back as an empty string.