Radio button value
<p>I have a dynamically generated radio button as fiven below</p>

<pre><code>echo '&lt;tr&gt;
                            &lt;td colspan="2"&gt;Login System&lt;/td&gt;
                            &lt;td colpan="2"&gt;
                                &lt;input type="radio" name="login_system'.$i.'" value="COMMON" checked="checked" /&gt;Common &amp;nbsp
                                 &lt;input type="radio" name="login_system'.$i.'" value="INDIVIDUAL"&gt;Individual
                            &lt;/td&gt;
                        &lt;/tr&gt;';
</code></pre>

<p>and i need to take its value using javascript. Below is the code i have written for that</p>

<pre><code>d['login_system']=$('input[name="login_system'+index+'"]').val();
</code></pre>

<p>But always I am getting value of first radio button even if I have selected second. 
Can anyone help me?</p>
