I want to check if a checkbox just got unchecked, when a user clicks on it. The reason for this is because i want to do a validation when a user unchecks a checkbox. Because atl
The answer already posted will work. If you want to use the jQuery :not you can do this:
if ($(this).is(':not(:checked)'))
or
if ($(this).attr('checked') == false)
jQuery to check for checked? Really?
if(!this.checked) {
Don't use a bazooka to do a razor's job.