Radio Buttons

admin

Administrator
Staff member
Hi all,

Can you advise me on how to resolve this problem.

I have a from with 2 radio buttons,

What I want to happen is, when button A is check do not check the contents of field X. If button B is checked, check to make sure that the is an entry in fied X.

This is the script:

if (document.mail.VATYES.checked==true) {
alert("You answered yes to VAT registration, please enter your VAT company registration No.");
return false;
}

The HTML part:

<td colspan="2"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">VAT
Registered</font></td>
<td colspan="4"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Yes
<input type="radio" name="VAT" value=http://www.webdeveloper.com/forum/archive/index.php/"radiobutton">
No
<input type="radio" name="VAT" value="radiobutton">
</font></td>
<td width="32%">&nbsp;</td>

Does this make sense.


Many thanks in advance


Dereck
 
Back
Top