How to uncheck a checkbox in pure JavaScript?

后端 未结 4 1991
萌比男神i
萌比男神i 2020-12-10 00:40

Here is the HTML Code:

4条回答
  •  甜味超标
    2020-12-10 01:15

    You will need to assign an ID to the checkbox:

    
    

    and then in JavaScript:

    document.getElementById("checkboxId").checked = false;
    

提交回复
热议问题