Javascript running strangely
-
Javascript seems to be running very strangely on my wordpress account. I say this because I have opened the html file from my desktop with no problem and although the sc function does not work the checkboxes at least check and unchek properly. But for some reason in wordpress nothing works. Is there something that I am supposed to import? How do I do that?
<script> function check() { document.getElementById("check1").checked=true } function uncheck() { document.getElementById("check1").checked=false } function sc() { if(document.getElementById("check1").checked) { document.getElementById("check2").style.display="none" } } </script> <body> <form> <input type="checkbox" id="check1">Print Design <input type="checkbox" id="check2">Print Design </form> <button onclick="check()">Check Checkbox</button> <button onclick="uncheck()">Uncheck Checkbox</button> <button onclick="sc()">Next</button> </body>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Javascript running strangely’ is closed to new replies.