i am using onChange method on radio buttons. the following code works fine in firefox. in IE it does nothing until you click somewhere else on the screen (or even if you click again on the same radio button)
Expand|Select|Wrap|Line Numbers
- function changed(fname)
- {
- if (fname=='InfoSources_1')
- {
- if (document.form1.InfoSources_1[1].checked)
- { document.getElementById('optional2').style.display='none';
- }
- else
- { document.getElementById('optional2').style.display='';
- }
- }
- }
any advice most appreciated, cheers :)