Determine if Checkbox is Checked using jQuery

dom, jquery

Solution

You would use the checked selector along with the is method of Jquery

if($('#chkbox').is(':checked')){

}

Problem

Possible Duplicate: Check checkbox checked property using jQuery What is the correct way of accessing a checkbox to check if it's checked? Is it necessary to first check if that element exists in the DOM and then see if is checked or not?

Original source

Related problems