Law29
0
Q:

if checkbox is checked

$(your_checkbox).is(':checked');
3
var checkBox = document.getElementById(id_field);
			if (checkBox.checked== true){
            }
6
if ($('#id_input').is(':checked')) { }
0
if (document.getElementById('id of the check box here').checked) {
	// it is checked. Do something
} else {
	// it isn't checked. Do something else
}

if ($('input[name="transport"]').is(':checked')) {
	alert('checked');
	alert($(this).attr('id')); //To get ID of checkBox
}
-1
function checkAddress()
{
    var chkBox = document.getElementById('checkAddress');
    if (chkBox.checked)
    {
        // ..
    }
}
0

New to Communities?

Join the community