javascript loop problem

Results 1 to 2 of 2

Thread: javascript loop problem

  1. #1
    Join Date
    Dec 1969

    Default javascript loop problem

    hey im using javascript to validte my asp pages so am relatively new to it. does anyone know whats wrong with the following code?<BR>im looping through 5 textboxes all called txtCommitteeMember1, txtCommitteeMember2, txtCommitteeMember3 etc.<BR><BR><BR>&#060;Script language="JavaScript"&#062;<BR><BR>function checkval()<BR>{<BR> for (i = 0; i &#060;= 5; i++) {<BR> if (document.form2.txtCommitteeMember[i].value.length == 0)<BR> {alert(&#039;You must enter a Member .&#039;)<BR> return false;<BR> loop <BR> } <BR> }<BR><BR><BR><BR> <BR> <BR>}<BR><BR><BR>&#060;/Script&#062;

  2. #2
    Join Date
    Dec 1969

    Default ** CROSSPOST

    Answered in Q&A.

Posting Permissions

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