Hey all, does anyone see an issue with this code? It seems to work sometimes just fine, and others the update element will show for no reason but the other two work. It is simply hiding three form elements when the page loads, but if the edit.gif image is clicked, the form elements are shown. Thanks!
[CODE]
<img src=’edit.gif’
onload=”
document.getElementById(‘sep’).style.display=’none’;
document.getElementById(‘team’).style.display=’none’;
document.getElementById(‘update_team’).style.display=’none’;”
onclick=”
var sty=document.getElementById(‘sep’).style; sty.display=(sty.display==’none’)?’inline’:’none’;
var sty2=document.getElementById(‘team’).style; sty2.display=(sty2.display==’none’)?’inline’:’none’;
var sty3=document.getElementById(‘update_team’).style; sty3.display=(sty3.display==’none’)?’inline’:’none’;
” >