looping through elements

Results 1 to 2 of 2

Thread: looping through elements

  1. #1
    Join Date
    Dec 1969

    Default looping through elements

    In JavaScript how can you loop through elements of a form?<BR><BR>I am adding text boxes to a form dynamically, now I need to validate these fields.<BR><BR>Thanks for any help.

  2. #2
    Join Date
    Dec 1969

    Default RE: looping through elements

    for(var x=0; x &#060; document.formname.elements.length; x++)<BR>{<BR> theValue = document.formname[x].value;<BR>}

Posting Permissions

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