buddyrich2
Technical User
I have some javascript that changes some html based on some radio button choices. Works great in IE, but in Safari doesn't work; in fact none of the rest of the form after that is displayed.
Here is the code:
Can anyone help me? Thanks in advance!
Here is the code:
Code:
<script type="text/javascript">
function SetHTML1(type) {
document.getElementById("a1").style.display = "none"
document.getElementById("b1").style.display = "none"
// Using style.display="block" instead of style.display="" leaves a carriage return
document.getElementById(type).style.display = ""
}
</script>
<INPUT TYPE="RADIO" NAME="insurance_yn" VALUE="Y" CHECKED onClick="SetHTML1('a1')">Yes <INPUT TYPE="RADIO" NAME="insurance_yn" VALUE ="N" onClick="SetHTML1('b1')">No</td></tr></table>
<span id="a1" style="">Blah blah blah</span>
<span id="b1" style="display:none">blah blah option 2</span>