Answers for "checkbox state"

0

get the state of a checkbox

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

checkbox value

<input type="checkbox" name="vehicle1" value="Bike">

The checkbox value is 'Bike'.
Posted by: Guest on July-27-2020

Browse Popular Code Answers by Language