Answers for "javascript checkbox value if checked"

0

get the state of a checkbox

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

how to check if input is checked javascript

const cb = document.getElementById('accept');
console.log(cb.checked);
Posted by: Guest on July-17-2020

Code answers related to "javascript checkbox value if checked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language