how to checked if a checkbox is checked code example
Example 1: How do I check whether a checkbox is checked in jQuery?
$('#' + id).is(":checked")
Example 2: get the state of a checkbox
function checkAddress()
{
var chkBox = document.getElementById('checkAddress');
if (chkBox.checked)
{
// ..
}
}