by specifying the position i will have to check all of them then!!, so this is what i did:
function checkform(form)
{
if ((form.same_room[0].checked == false) && (form.same_room[1].checked == false))
{
alert( "You Choose");
form.same_room[0].focus();
return false ;
}
return true ;
}
and this is the html part:
<td class='style8'>
1) Do you mind if your exam is scheduled in the same room with
another exam?<br /><br />
<input type='radio' name='same_room' value='yes' >Yes<br />
<input type='radio' name='same_room' value='no'>No<br /><br />
<i>If you chose YES, please give your reasons. If no reason is provided the request will be rejected:</i><br /><br />
<textarea rows='6' name='same_room_reason' cols='47'></textarea>
<br />
</td>
But stilll aint working!!
__________________
Personal Portfolio
TecBrain Support Forum
Linux VS Windows ... Dont Even Think of it ..
Distribution: Slackware
if (OS==Linux) return success
There are 10 kinds of people, those who can read binary numbers and those who can't.