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?
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?
You would use the checked selector along with the is method of Jquery
if($('#chkbox').is(':checked')){
}
You can see if the checkbox is checked by using the following condition.
if( $("input:checked").length == 1 ) {
//Checkbox is selected and Do stuff here
}