Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q661 Can I click some text next to a radio button to set the radio button to clicked?

irt.org | Knowledge Base | JavaScript | Form 3.5 | Q661 [ previous next ]

Q661 Can I click some text next to a radio button to set the radio button to clicked?

Try:

<HTML>

<SCRIPT LANGUAGE="JavaScript"><!--
function click(which) {
    document.theForm.theRadio[which].checked = true;
}

//--></SCRIPT>

<FORM NAME="theForm">
<INPUT TYPE="RADIO" NAME="theRadio" CHECKED> <A HREF="javascript:click(0)">Click this</A>
<BR>
<INPUT TYPE="RADIO" NAME="theRadio"> <A HREF="javascript:click(1)">Click this</A>
</FORM>

</HTML>

Feedback on 'Q661 Can I click some text next to a radio button to set the radio button to clicked?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.