how to make a checkbox change state code example
Example 1: get the state of a checkbox
function checkAddress()
{
var chkBox = document.getElementById('checkAddress');
if (chkBox.checked)
{
// ..
}
}
Example 2: html checkbox status
app.innerHTML = '<h1>Hello, world!</h1>';