I have a form and in the form I’m appending hidden values dynamically via JQuery and these hidden values look like this:
<input type="hidden" name="times[]" value="{'time': '5:00pm','date': 'april 15th'}" />
<input type="hidden" name="times[]" value="{'time': '6:00pm','date': 'april 16th'}" />
<input type="hidden" name="times[]" value="{'time': '7:00pm','date': 'april 17th'}" />
Using JQuery how can I iterate through the times[] array and output each value so the person can see all the values they have been adding in the form prior to submitting the form?
Or you could use an array to push all fetched values in it. What are you going to do with the values is entirely up to you.