![]() |
Radio button validation
how would i check to see if my radio button is not checked. I know in javascript the term "checked" works. Is there a way to us unchecked?
here is what i am trying to figure out. Code:
with (thisform) |
yes, if memory serves me right, you can call your individual radio buttons like an array,
if(document.getElementById('m21')[0].checked == true) |
thanks, that seems it should work, but alas it doesnt, all text fileds work, so should i make it look like the top with?
Code:
with (thisform) |
if this helps at all, here is the whole code!
Code:
<script type="text/javascript">Code:
<form name="super_reg" method="post" onsubmit="return validate_form(this)" action="thankyou.php" > |
| All times are GMT +1. The time now is 11:20 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.