Jul 28, 2003 #1 Markh51 Programmer May 20, 2003 81 GB I have a script which picks out all the elements by name, I think this is the line what does it ?? while ( elem = f.elements[i++] ) How do I change this line so that is pick up the elements by ID ?? Thanks, Mark
I have a script which picks out all the elements by name, I think this is the line what does it ?? while ( elem = f.elements[i++] ) How do I change this line so that is pick up the elements by ID ?? Thanks, Mark
Jul 28, 2003 #2 dwarfthrower Programmer Apr 22, 2003 1,625 AU Well, the line Code: while ( elem = f.elements[i++] ) doesn't pick out the elements of a form by Name, it picks them out by the order in which they are placed on the form. To get any form element by name use [tt] document.formName.elementName[/tt] Upvote 0 Downvote
Well, the line Code: while ( elem = f.elements[i++] ) doesn't pick out the elements of a form by Name, it picks them out by the order in which they are placed on the form. To get any form element by name use [tt] document.formName.elementName[/tt]