jquery实现checkbox全选全不选的简单实例(2)

name="Search">
                    <table cellpadding="0" cellspacing="0">
                       <tr>
                       <td>记录日期:</td>
                          <td><input type="text" value="${msgDate}"/></td>
                        <td>热点类型:</td>
                          <td>
                           <s:select list="typeMap" value="msgType" theme="simple"/>
                           </td>                                                  
                          <td>上网类型:</td> 
                          <td>
                           <s:select list="areaMap" value="msgOnlineType" theme="simple"/>                      
                          </td>                     
                       </tr>
                       <tr>
                        <td>手机号码:</td>
         <td>
          <input type="text" value="${msgMobileno}"/>
         </td>
                        <td>地址建议:</td>
                           <td>
                            <input type="text" value="${msgAddress}"/>
                           </td> 
                           <td colspan="2"><img src="<%=path %>/themes/default/btn_search.gif" /></td>         
                       </tr>                      
                     </table>
                     <input type="hidden" value="${prepage}"/>
                        <input type="hidden" value="${currPage}"/>
                     </form>
       </div>

        <table cellpadding="0" cellspacing="0" bordercolor="#1C568A">
                <tr>
                 <th><div title="全选/全不选"><input type="checkbox" title="全选/全不选"/></div></th>                
                 <th><div>记录日期</div></th>
                  <th><div>热点类型</div></th>
                 <th><div>上网类型</div></th>
                  <th><div>手机号码</div></th>
                  <th><div>地址建议</div></th>                  
                </tr>
                <s:iterator value="surveyList" status="sta">
                       <tr>                       
                         <td>
                          <c:choose>
                           <c:when test="1==1">
                            <input type="checkbox" disabled="disabled"/>
                           </c:when>
                           <c:otherwise>
                            <input type="checkbox"/>
                           </c:otherwise>
                          </c:choose>                          
                          <input type="hidden" value="${dto.id}"/>
                         </td>
                          <td>
                          ${dto.recmakedate}
                         </td>
                         <td>
                          ${dto.type}
                         </td>
                         <td>
                          ${dto.onlinetype}
                         </td>
                         <td>
                          ${dto.mobileno}
                         </td>
                         <td>
                          ${dto.address}
                         </td>               
                       </tr>
                     </s:iterator>
              </table>
              <s:if test="surveyList.size>0">
              <table cellpadding="0" cellspacing="0">
                  <tr>
                   <th>第${currPage}页 | 共${countPage}页/${countNum}条记录</th>
                      <td>每页 
                          <select onChange="px(this.options

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wdwwsg.html