Everytime I do this, it doesn't work. All I'm trying to do is toggle between 2 divs.
Script:Call to them:Code:function toggle() { // DOM3 = IE5, NS6 document.getElementById('div1').style.visibility = 'visible'; document.getElementById('div2').style.visibility = 'hidden'; } function toggle2() { // DOM3 = IE5, NS6 document.getElementById('div1').style.visibility = 'hidden'; document.getElementById('div2').style.visibility = 'visible'; }IT WON'T WORK AND I MIGHT PULL MY HAIR OUT.PHP Code:echo "<br><br><input type=radio name=opt value=1 onclick='toggle()'>Specify Test";
echo "<input type=radio name=opt value=1 onclick='toggle2()'>Specify Cell<br>";
echo "<div id=div1 style=visibility:visible>testtesttesttest</div>";
echo "<div id=div2 style=visibility:hidden>test2test2test2test2test2</div>";
![]()




Reply With Quote