HI,

I have following html code. Using jQuery how to get all the
radiobuttons inside span id 'list_0'

as i tried

var kk=$("#list_0 > input:radio")  is not working

plz help...

<span id="list_0" title="list_0">
        SET 1
<table border="0" cellpadding="0" cellspacing="0" width="100%">
          <thead>
            <tr class="alignbottom">
              <th colspan="2">[Option]</th>
              <th class="alignright" width="13%">[Category 1]</th>

              <th class="alignright" width="13%">[Category 2]</th>
              <th class="alignright" width="13%">[Category 3]</th>
              <th class="alignright" width="13%">[Category 4]</th>
              <th class="alignright" width="13%">[Category 5]</th>
              <th class="alignright" width="13%">[Category 6]</th>
              <th class="alignright" width="13%">[Category 7]</th>

            </tr>
          </thead>
          <tbody>
            <tr class="dummy">
              <th class="alignmiddle" width="4%"><input
name="radiobutton" id="rad1" value="nitin" type="radio"
checked="checked"></th>
              <th colspan="8" class="alignmiddle"><strong>[0 - No
Coverage]</strong></th>
            </tr>
            <tr class="tblruledark">

              <td class="alignmiddle" width="4%">&nbsp;</td>
              <td class="alignright alignmiddle" width="5%">&nbsp;</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>

              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
              <td class="alignright alignmiddle" width="13%">$[0.00]</
td>
            </tr>
            <tr id="row_2" >
              <th class="alignmiddle" width="4%"><input
name="radiobutton" id="rad2" value="anit"  type="radio"></th>
              <th colspan="8" class="alignmiddle"><strong>[7 - Option
7]<sup>1</sup></strong></th>
            </tr>

            <tr class="tblruledark">
              <td class="alignmiddle" width="4%">&nbsp;</td>
              <td class="alignright alignmiddle" width="5%">&nbsp;</
td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>

              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
            </tr>
            <tr class="dummy" id="row_3">
              <th class="alignmiddle" width="4%"><input
name="radiobutton" value="sachin" type="radio" ></th>
              <th colspan="8" class="alignmiddle"><strong>[9 - Option
9]<sup>2</sup></strong></th>

            </tr>
            <tr class="tblruledark">
              <td class="alignmiddle" width="4%">&nbsp;</td>
              <td class="alignright alignmiddle" width="5%">&nbsp;</
td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>

              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
            </tr>
            <tr class="dummy" id="row_4">
              <th class="alignmiddle" width="4%"><input
name="radiobutton" value="souti" type="radio"  ></th>
              <th colspan="8" class="alignmiddle"><strong>[21 - Option
21]<sup>3</sup></strong></th>
            </tr>
            <tr class="tblruledark">
              <td class="alignmiddle" width="4%">&nbsp;</td>
              <td class="alignright alignmiddle" width="5%">&nbsp;</
td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>

              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
              <td class="alignright alignmiddle" width="13%">$[999.99]
</td>
            </tr>

          </tbody>
        </table>
</span>

Reply via email to