Hello,
I'm writing a form where it puts a red asterisk next to required
fields, and depending on a few Yes/No questions, the asterisks will
change. This works great in IE but not in Netscape or Mozilla. Can
someone give me pointers on what's going wrong? Below is a sample of
the code for one entry.
I stripped out all the formatting and unneeded code since the form
this is from is over 1200 lines.
Thanks for any suggestions.
Keegan.
....snip...
<script type="text/javascript">
function employedY() {
document.getEle mentById("EmpAs terisk1").style .visibility =
"visible";
}
function EmployedN() {
document.getEle mentById("EmpAs terisk1").style .visibility = "hidden";
}
</script>
....snip...
Are you employed?
<INPUT TYPE="RADIO" NAME="EmployedY esNo" VALUE="Yes"
onclick="employ edY()"> Yes
<INPUT TYPE="RADIO" NAME="EmployedY esNo" VALUE="No"
onclick="Employ edN()" checked> No
<span id="EmpAsterisk 1" style="visibili ty:hidden;"><fo nt size="4"
color="#FF0000# "><b>*</b></font></span>
Employer:<INPUT TYPE="TEXT" NAME="Employer" >
....snip...
I'm writing a form where it puts a red asterisk next to required
fields, and depending on a few Yes/No questions, the asterisks will
change. This works great in IE but not in Netscape or Mozilla. Can
someone give me pointers on what's going wrong? Below is a sample of
the code for one entry.
I stripped out all the formatting and unneeded code since the form
this is from is over 1200 lines.
Thanks for any suggestions.
Keegan.
....snip...
<script type="text/javascript">
function employedY() {
document.getEle mentById("EmpAs terisk1").style .visibility =
"visible";
}
function EmployedN() {
document.getEle mentById("EmpAs terisk1").style .visibility = "hidden";
}
</script>
....snip...
Are you employed?
<INPUT TYPE="RADIO" NAME="EmployedY esNo" VALUE="Yes"
onclick="employ edY()"> Yes
<INPUT TYPE="RADIO" NAME="EmployedY esNo" VALUE="No"
onclick="Employ edN()" checked> No
<span id="EmpAsterisk 1" style="visibili ty:hidden;"><fo nt size="4"
color="#FF0000# "><b>*</b></font></span>
Employer:<INPUT TYPE="TEXT" NAME="Employer" >
....snip...
Comment