I'm trying to add the popup calendar to a page where a user can click a button to add another entry of the calendar.
By this, I mean, there's a table row that displays a form field for the date and the calendar. If they click the "Add" button, another row is generated that would display another form field and the calendar.
However, I'm having trouble with the Calendar.setup( ) function for this. I'm putting the function call inside my JS "Add" function, but I get the "Nothing to setup (no fields found)" alert. It looks like that Calendar.setup( ) function has to actually be physically after the form field (which in this case it's not, because the form field is placed inside the form, while the JS code is at the top of the page).
Has anyone done this before and have a way to do it?
Thanks
By this, I mean, there's a table row that displays a form field for the date and the calendar. If they click the "Add" button, another row is generated that would display another form field and the calendar.
However, I'm having trouble with the Calendar.setup( ) function for this. I'm putting the function call inside my JS "Add" function, but I get the "Nothing to setup (no fields found)" alert. It looks like that Calendar.setup( ) function has to actually be physically after the form field (which in this case it's not, because the form field is placed inside the form, while the JS code is at the top of the page).
Has anyone done this before and have a way to do it?
Thanks
Comment