Get selector in event handler
<p>I answered <a href="http://stackoverflow.com/questions/6469116/asp-net-checkbox/6469251#6469251">this question</a> with this jQuery code:</p>

<pre><code>$('input[type="checkbox"][name$="chkSelect"]').click(function() {
  $('input[type="checkbox"][name$="chkSelect"]').not(this).prop("checked", false);
});
</code></pre>

<p>... and it got me thinking: there must be a way to avoid duplicating the selector in the event handler.</p>

<p>I tried <code>$(this).selector</code> but that just returns an empty string.  <a href="http://jsfiddle.net/Town/Qaj8h/" rel="nofollow">Here's a demo</a>.</p>

<p><strong>Is there a way to get the selector text in the event handler?</strong></p>
