Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1020 How can I uncheck a radio form field?

You are here: irt.org | FAQ | JavaScript | Form | 3.5 | Q1020 [ previous next ]

Set the radios checked property to false:

<SCRIPT LANGUAGE="JavaScript"><!--
function myFunction() {
        document.myForm.radioName.checked = false;
}
//--></SCRIPT>

<BODY onLoad="myFunction()">

<FORM NAME="myForm">
<INPUT TYPE="RADIO" NAME="radioName" CHECKED>
</FORM>

©2018 Martin Webb