Jump to content


This topic is now archived and is closed to further replies.


radio button

Recommended Posts

I have 2 radio buttons in a form. I was wondering how to trigger a button if someone clicks on a different part of the form, like in a text box?
I searched it but i didnt know what to search for except "radio button" which gave me a million results


Share this post

Link to post
Share on other sites
<script type="text/javascript">
function check(name)

function uncheck(name)

<input type="radio" name="R1" value="V1" id="R1" /><BR>
<input type="text" name="text" onClick="check('R1');" />


Thatll make it where if someone clicks in the text box it selects the radio button...

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.