Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function check() { document.getElementById("myCheck").checked=true; } function uncheck() { document.getElementById("myCheck").checked=false; } </script> </head> <body> <form> <input type="checkbox" id="myCheck" /> <input type="button" onclick="check()" value="Check Checkbox" /> <input type="button" onclick="uncheck()" value="Uncheck Checkbox" /> </form> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself