I have a form that has rows of input fields added using javascript by pressing a button, which means that I have a single form with lots of items with the same ID. eg.:
<input id=forename></input> <input id=surname></input> <input id=forename></input> <input id=surname></input> <input id=forename></input> <input id=surname></input> <input id=forename></input> <input id=surname></input> [button to add a new line of input fields] [button to call a javascript to save the form] When the user presses the [save] button, my Javascript works fine for all my non-repeated fields, but I can't figure out how to get a list of values for <forename> and <surname> I guess it shoud be something like: var my_forenames = $F( 'forname' ); var my_surnames = $F( 'surname' ); ....but this just returns the value of the first row. What SHOULD I be doing? TIA Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---