Get dynamic radio ID and value (jQuery)
<p>We have dynamic ID's generated from a database like this:</p>

<pre><code>&lt;input type="radio" id="brand1" value="1"&gt;
&lt;input type="radio" id="brand1" value="2"&gt;
----
&lt;input type="radio" id="brand2" value="1"&gt;
&lt;input type="radio" id="brand2" value="2"&gt;
</code></pre>

<p>How can I get/alert, through a click on a radio button, which ID it is?</p>

<p>(I guess my error is in the first line: 'input#brand'.)</p>

<pre><code>$('input#brand').live('click',function() { 
    var radiovalue = $('input[name=brand + id]:checked').val()
    alert(radiobuttonID + radiovalue);
});
</code></pre>
