• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
off topic question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Problem with 'run script'
  • Next by Date: Re: Need help with "out of memory Errors" on server script
  • Previous by thread: Re: -5000 error
  • Next by thread: Re: Problem with 'run script'
  • Index(es):
    • Date
    • Thread