Topic

Tutorials

Step-by-step guides and tutorials on websites, smartphones, computers, and digital tools to help users learn, troubleshoot, and master technology.

1,568 articles

Articles — page 117

JavaScript

Check/Uncheck checkbox with JavaScript

// Check document.getElementById("checkbox").checked = true; // Uncheck document.getElementById("checkbox").checked = false; jQuery (1.6+): // Check $("#checkbox").prop("checked", true); // Uncheck $("#checkbox").prop("checked", false);…

Aug 5, 2022 1 min read