best way to get a callback when a radiobutton is clicked in javascript
<p>I have got an html like this:</p>

<pre><code>&lt;input type="radio" name="v" value="1"&gt; 1&lt;br&gt;
&lt;input type="radio" name="v" value="2"&gt; 2&lt;br&gt;
&lt;input type="radio" name="v" value="3" checked&gt; 3&lt;br&gt;
</code></pre>

<p>I want to know how to monitor all of those radio buttons.
I could have many more than 3. </p>

<p>One thing I though is to have an 'onclick' function for all of them.</p>

<p>is that the right way ?
or is there a neater way to register a common javascript function when the radio button set has changed.</p>

<p>Thanks,</p>
