Menu
Hi all
I have multiple text box and i want to validate it all through a single for loop and a if loop.
say :
<input name=”at1″ type=”text” class=”style7″ maxlength=”10″>
<input name=”at2″ type=”text” class=”style7″ maxlength=”10″>
<input name=”at3″ type=”text” class=”style7″ maxlength=”10″>
[QUOTE] <script=”javascript”>
for(i=1;i<=3;i++)
{
if(document.f.at[i].value.length==””)
{
alert(“Please fillup the A, T..Vid /+S/ DVD /GP”);
return false;
}
}
</script>[/QUOTE]
but in this way it is not validating
Can yopu plz suggest me what should i do now?
Thanks in advance…………Raj