JQuery and radio buttons
<pre><code>&lt;form id="Numbers1"
&lt;table id="numbers"&gt;
    &lt;tr&gt;
        &lt;th&gt;
            prvi_br
        &lt;/th&gt;
        &lt;th&gt;
            drugi_br
        &lt;/th&gt;
        &lt;th&gt;
            treci_br
        &lt;/th&gt;
    &lt;/tr&gt;
&lt;% int rb = 1; %&gt;
&lt;% foreach (var item in Model) { %&gt;

    &lt;tr&gt;

        &lt;td&gt;
        &lt;%= Html.Encode(item.prvi_br) %&gt;
        &lt;input type="radio" name="&lt;%= Html.Encode(rb) %&gt;"  value="&lt;%= Html.Encode(rb) %&gt;" id='&lt;%= Html.Encode(item.prvi_br) %&gt;'/&gt;

        &lt;/td&gt;
        &lt;td&gt;
        &lt;%= Html.Encode(item.drugi_br) %&gt;
        &lt;input type="radio" name="&lt;%= Html.Encode(rb) %&gt;" value="&lt;%= Html.Encode(rb) %&gt;" id='&lt;%= Html.Encode(item.drugi_br) %&gt;'/&gt;

        &lt;/td&gt;
        &lt;td&gt;
        &lt;%= Html.Encode(item.treci_br) %&gt;
        &lt;input type="radio" name="&lt;%= Html.Encode(rb) %&gt;" value="&lt;%= Html.Encode(rb) %&gt;" id='&lt;%= Html.Encode(item.treci_br) %&gt;'/&gt;

        &lt;/td&gt;
        &lt;% rb=rb+1; %&gt;
    &lt;/tr&gt;  
&lt;% } %&gt;

&lt;/table&gt;
        &lt;p&gt;
            &lt;input type="submit" value="Save" /&gt;
        &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>With this script I get some info of selected radio:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function() {

    var thevalue1;
    var thevalue2;

    $("#Numbers1").submit(function() {
    $("input:radio:checked").each(function() {
            thevalue1 = $("input:radio:checked").attr('id');
            thevalue2 = $("input:radio:checked").val();
            alert(thevalue1 + thevalue2); 
        });          
    });
});
&lt;/script&gt;
</code></pre>

<p>If I have more rows this alert every time prints the information of first selected radio, why???</p>
