Quick Hitter: Checkboxes and jQuery

I found myself struggling today trying to obtain the current state of a checkbox using jQuery.

I had been attempting to use .val() on the object, just like all the other input types:

Unfortunately, this always returned true.

After a bit of searching, I found what I was looking for:

You may also like...