本帖最后由 shaojiexu15 于 2013-08-19 10:25:02 编辑

解决方案 »

  1.   

    var txt;
    $("[name = categorySelected]:checkbox").each(function(){
     if($(this).attr("checked"))
      {txt+=$(this).val()+","}})  $('tableId tr').each(function(){alert($(this).find('td').eq(3).find('input').val());
    alert($(this).find('td').eq(5).find('input').val());
    });
     
      

  2.   

    问题已经解决,谢谢各位了
    解决代码
    jsp代码:
    <tr style="border: 0px;" bgcolor="#6699CC" >
    <td colspan="5" align="center" bgcolor="#6699CC" style="border: 0px;">
    <table bgcolor="#6699CC" align="left" style="width: 100%; text-align: center; border: 0px;">
    <p align="center" bgcolor="#6699CC"  class="pt14-white">监督检测专业类别</p>
    <s:iterator value="categoryList" status="status">
    <tr>
                        <td align="center" bgcolor="#FFFFFF" class="pt12-black">&nbsp;<input type="hidden" name="showList[<s:property value="#status.index"/>].key" value="<s:property value="%{key}" />"/></td>
    <td width="15%" bgcolor="#FFFFFF" class="pt12-black" align="left"><input type="checkbox" name="showList[<s:property value="#status.index"/>].type" value="1"/><s:property value="%{value}" /></td>
    <td width="15%" bgcolor="#FFFFFF" class="pt12-black" align="right">检测件数:</td>
    <td width="12%" bgcolor="#FFFFFF" class="pt12-black"><input type="text" name="showList[<s:property value="#status.index"/>].checkNumber" /></td>
    <td width="15%" bgcolor="#FFFFFF" class="pt12-black" align="right">合格件数:</td>
    <td width="13%" bgcolor="#FFFFFF" class="pt12-black"><input type="text" name="showList[<s:property value="#status.index"/>].sufficeNumber" /></td>
    </tr>
    </s:iterator>
    </table>
    </td>
    </tr>
    后台代码:
    private List<InspectCategory> categoryList = new ArrayList<InspectCategory>(); //要显示的所有项
    private List<InspectCategory>  showList; //默认选中的项