RE: forms and javascript

Results 1 to 2 of 2

Thread: RE: forms and javascript

  1. #1
    Join Date
    Dec 1969

    Default RE: forms and javascript

    how would you initialize an array of 70 elements (using a loop) with the values from 20 different email inputs named email1, email2, etc.<BR><BR>(of course i could do each of the 70 separately but that would suck :))<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Use a loop.

    A for loop to be precise.<BR><BR>Then, you can get the values from the form object, by doing:<BR>document.formname[&#039;email&#039; + x].value<BR><BR>Where x is your loop counter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts