off topic question
off topic question
- Subject: off topic question
- From: Andrew Simpson <email@hidden>
- Date: Tue, 18 Sep 2001 14:33:02 +1200
i know how much you like answering my on topic questions so i hope this one
doesn't get my house burnt down but here it goes.
in JavaScript how do you pass a variable holding the name of an input
element on a form to a function then use that variable holding the name of
the control to reference the rest of the properties of the control.
eg:
//get all the elements on the form where name = "testinput"
var variable1 = document.all.item("testInput").name;
//show all the values of all the inputs on the page that match the above
criteria...
--loop
alert (form1.variable1.value);
--end loop
any help appreciated...
Andrew