How do I modify the check status of the check box in JavaScript?

Asked 2 years ago, Updated 2 years ago, 18 views

How do I modify the check status of the check box in JavaScript?

javascript

2022-09-22 21:58

1 Answers

// Check
document.getElementById("checkbox").checked = true;

//  //  Uncheck
document.getElementById("checkbox").checked = false;


2022-09-22 21:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.