Checking and unchecking a checkbox with JavaScript: a quick lesson on HTML IDL attributes
A snippet to check and uncheck an HTML checkbox with vanilla JavaScript. Plus an introduction to content attributes versus IDL attributes on HTML elements.
Tags: javascript, html, codesnippets, todayilearned