How to check if a checkbox is checked or not in jquery


if ( $("#checkboxID").prop('checked') == true) {
	alert("Checkbox checked");

A checkbox Object has a property called checked. That can be tested by jquery to see if the check if the checkbox is selected by the user.


jQuery API

Share this article:

Recent Comments