I use this JavaScript to validate my form; the script works perfectly except when I tried making it work with option button, I tried sth like but it aint working
if (form.field_name.checked == false)
This is my js
<script language="JavaScript" type="text/javascript">
<!--
function checkform (form)
{
if (form.field_name.value == "")
{
alert( "a msg error here");
form.field_name.focus();
return false ;
}
return true ;
}
//-->
</script>
__________________
Personal Portfolio
TecBrain Support Forum
Linux VS Windows ... Dont Even Think of it ..
Distribution: Slackware
if (OS==Linux) return success
There are 10 kinds of people, those who can read binary numbers and those who can't.