Get clicked element in ButtonSet
<p>I would like to know which element is clicked so I can change its CSS class. Here is the code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
      $(function() {
       $("#radio").buttonset();
      });
&lt;/script&gt;
</code></pre>

<hr>

<pre><code>&lt;div id="radio"&gt;
   &lt;input type="radio" id="radio1" name="radio" /&gt;&lt;label for="radio1"&gt;Choice 1&lt;/label&gt;
   &lt;input type="radio" id="radio2" name="radio" checked="checked" /&gt;&lt;label for="radio2"&gt;Choice 2&lt;/label&gt;
   &lt;input type="radio" id="radio3" name="radio" /&gt;&lt;label for="radio3"&gt;Choice 3&lt;/label&gt;
&lt;/div&gt;
</code></pre>
