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

Q1729 How can I uncheck all radio boxes within a group of radio boxes?

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

Try:

<html>

<body>

<form name="radioForm">

<input type="radio" name="test" value="daily" checked>
<br>
<input type="radio" name="test" value="monthly">
<br>
<input type="radio" name="test" value="quarterly">
</table>

</form>

<script language="JavaScript"><!--
for (var i=0; i<document.radioForm.test.length; i++)
  document.radioForm.test[i].checked = false;
//--></script>

</body>

</html>

©2018 Martin Webb