View Single Post
  #1 (permalink)  
Old March 27th, 2007, 05:09 AM
steve1234 steve1234 is offline
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp radio button array validation

HI

I want to validate a form which has approx 36 fields in which I accpt the reponses from radio button (yes/NO/NA). I need to know the Javascript which would validate all the 36 field radio buttons in an array and return the pointer where the radio button was left and not selected.
-----------------
<td width="68" align="center"><input type="radio" value="1" name="OP_1" onClick=0></td>
        <td width="68" align="center"><input type="radio" value="2" name="OP_1" onClick=0></td>
        <td width="69" align="center"><input type="radio" value="0" name="OP_1" onClick=0></td>
        <td type "hidden" width="5" align="center">
-------------------
<td width="68" align="center"><input type="radio" value="1" name="OP_2"></td>
        <td width="68" align="center"><input type="radio" value="2" name="OP_2"></td>
        <td width="69" align="center"><input type="radio" value="0" name="OP_2"></td>
--------------
<td width="68" align="center"><input type="radio" value="1" name="OP_3"></td>
        <td width="68" align="center"><input type="radio" value="2" name="OP_3"></td>
        <td width="69" align="center"><input type="radio" value="0" name="OP_3"></td>
---------

The above examples state 3 fields, there are 33 more like this.
Please help


Reply With Quote