jquery with index based radio button selected value help
<p>I have following generated code and tried to retrive the radio button value or checked from below html generated code </p>

<p>HTML code generated :::  </p>

<pre><code>    &lt;input type="radio"      name="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionnaire.value" id="SetUpTest_mergedServiceSets_0__cdaQuestionnaireresponses_0__questionnaire_valueY" value="Y" class="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionInputRadio" onchange="javascript:dataModified();"/&gt;&amp;nbsp;Yes&lt;br /&gt;

    &lt;input type="radio" name="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionnaire.value" id="SetUpTest_mergedServiceSets_0__cdaQuestionnaireresponses_0__questionnaire_valueN" value="N" class="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionInputRadio" onchange="javascript:dataModified();"/&gt;&amp;nbsp;No&lt;br /&gt;
</code></pre>

<h2>Jquery1.6.1 used :</h2>

<pre><code>var questionInputRadio = $(".mergedServiceSets[" + i + "].cdaQuestionnaireresponses[" + j + "].questionInputRadio");
</code></pre>

<p>where i and j are passed dynamically .
or </p>

<pre><code>alert("questionInputRadio===" + $(".mergedServiceSets[0].cdaQuestionnaireresponses[0].questionInputRadio").val());
</code></pre>

<p>Actual results ::: undefined is displaying when i see in alert box .</p>

<p>It never works for index based classes or ids in jquery . please help </p>
