HI all,
I have a form, with a checkbox named "chkBold". A JS routine should simply alert "false" or "true". But nothing works. Does anyone see anything wrong with this? I just entered the most pertinent lines here. The form is full of fields that validate fine, but not this check box. Thanks! Here is the code:
<script type="text/javascript" "language="javascript">
function boldonoff() {
If (document.frmPageCreate.chkBold.checked==false)
{
alert ("false");
} else {
alert ("true");
}
}
</script>
---------------------------------------
(this is inside of <Form Name="frmPageCreate">)
<Input Type="checkbox" Name="chkBold" onClick=boldonoff()>Bold?</Input>
I have a form, with a checkbox named "chkBold". A JS routine should simply alert "false" or "true". But nothing works. Does anyone see anything wrong with this? I just entered the most pertinent lines here. The form is full of fields that validate fine, but not this check box. Thanks! Here is the code:
<script type="text/javascript" "language="javascript">
function boldonoff() {
If (document.frmPageCreate.chkBold.checked==false)
{
alert ("false");
} else {
alert ("true");
}
}
</script>
---------------------------------------
(this is inside of <Form Name="frmPageCreate">)
<Input Type="checkbox" Name="chkBold" onClick=boldonoff()>Bold?</Input>