有没有办法计算存在的复选框总数?
这是页面生成的html源代码..
<tr>
<td>
<span style="padding-left:15px;">
<input id="ctl00_ContentPlaceHolder1_Control1_stCat_8" type="checkbox" name="ctl00$ContentPlaceHolder1$AddControl1$cat$lstCat$8"/>
<label for="ctl00_ContentPlaceHolder1_AddControl1_lstCat_8">Item 1</label>
</span>
</td>
</tr>
<tr>
<td>
<span style="padding-left:15px;">
<input id="ctl00_ContentPlaceHolder1_Control1_stCat_9" type="checkbox" name="ctl00$ContentPlaceHolder1$AddControl1$cat$lstCat$8"/>
<label for="ctl00_ContentPlaceHolder1_AddControl1_lstCat_9">Item 2</label>
</span>
</td>
</tr>
<tr>
<td>
<span style="padding-left:15px;">
<input id="ctl00_ContentPlaceHolder1_Control1_stCat_10" type="checkbox" name="ctl00$ContentPlaceHolder1$AddControl1$cat$lstCat$8"/>
<label for="ctl00_ContentPlaceHolder1_AddControl1_lstCat_10">Item 3</label>
</span>
</td>
</tr>