How to remove checkbox-2pcs.?

Zdravstvuite!
document.getElementById('start').onclick = function (){
if (document.getElementById('start').checked == true){
document.getElementById('finish').checked = true;}
}

I need when clicking on one checkbox to tick the box on two, and when you click on one checkbox to remove the check mark from two, well placed, but not removed, help with the code. If you have questions, ask.
March 20th 20 at 11:25
1 answer
March 20th 20 at 11:27
Solution
document.getElementById('start').onclick = function (){
if (document.getElementById('start').checked == true){
document.getElementById('finish').checked = true;}
else {document.getElementById('finish').checked = false;}
}

Find more questions by tags JavaScriptWeb Development