Open GoogleCodeExporter opened 8 years ago
Okay, I found a solution to the issue. The problem is with your resetForm
function.
The resetForm() in the demo clears only the form fields, but you also need to
REMOVE
the selectbox options entirely with something like this:
$('#appointment_start').find('option').remove();
In that code, #appointment_start is the ID of your start times selectbox.
You'd do
the same with the end time selectbox.
The selectboxes have to be removed, because your setupStartAndEndTimeFields
function
APPENDS the selectbox options for the next appointment a user creates to
whatever it
finds. So without the remove(), it'll just keep appending new times to the
previous
times.
Hope this helps.
--Bob
Original comment by rstein2...@gmail.com
on 15 Jan 2010 at 11:25
Original issue reported on code.google.com by
rstein2...@gmail.com
on 12 Jan 2010 at 11:13