jquery實(shí)現(xiàn)全選和取消全選 利用jQuery實(shí)現(xiàn)CheckBox全選/全不選/反選的簡單代碼?
利用jQuery實(shí)現(xiàn)CheckBox全選/全不選/反選的簡單代碼?js中的反選是什么意思?代碼示例:JS anti-select/select allJS在標(biāo)題行中添加all復(fù)選框和anti-sele
利用jQuery實(shí)現(xiàn)CheckBox全選/全不選/反選的簡單代碼?
js中的反選是什么意思?
代碼示例:
JS anti-select/select all
JS在標(biāo)題行中添加all復(fù)選框和anti-select按鈕,在數(shù)據(jù)行中添加name屬性的復(fù)選框。
&Lttable border=“1”align=“center”width=“80%”>
<tr>
<TH><input
type=“checkbox”id=“checkall”onclick=“checkall()”/><input
type=“button”value=“invert selection”onclick=“invertchk()”/></th>
<TH>主鍵序號</th>
</TR>
<tbody>
<c:forEach項(xiàng)="${ 頁面列表}“
var=”recruit“>
<tr align=”center“>
<td><input type=”checkbox“
name=”checkid“value=”${招聘.nid}“/></td>
<td>${招聘.nid}</td>
<td>${招聘.cjob}</td>
</tr>
</c:forEach>
</tbody>
</table>