Answers for "js checkbox not checked"

2

checkbox is not getting checked

<input type="checkbox" name="free" value="mon09" onClick="this.checked=!this.checked;">
Posted by: Guest on May-07-2021
0

get the state of a checkbox

function checkAddress()
{
    var chkBox = document.getElementById('checkAddress');
    if (chkBox.checked)
    {
        // ..
    }
}
Posted by: Guest on June-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language