<input type="checkbox" id="Check" ></input> <input type="checkbox" id="Check1"> </input>
function function1(){ document.getElementById("Check1").checked = true; }
<!DOCTYPE html> <html> <head> <script> function myfunction() { document.getElementById('checkbox2').checked = document.getElementById('checkbox1').checked } </script> </head> <body> <input type="checkbox" id="checkbox1" onclick="myfunction();">Checkbox1 <input type="checkbox" id="checkbox2">Checkbox2 </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)