jQuery click handler passing event object, getting checkbox status
<p>(Sort of a newbie question from someone that is more accustomed to how Flash/ActionScript works.)</p>

<p>Given a checkbox and jQuery click(), how do I do the following:</p>

<pre><code>$('#myCheckBox').click (function(event) {
  checkboxState = event.target.attr("checked");
  // now do something with checkboxState
}
</code></pre>

<p>I.e., I want to get the checkbox checked attribute within the anonymous function because that's the pattern that seems to make the most sense, however I don't know how this can be done.</p>

<p>Thanks.</p>
