jquery实现全选和取消全选 利用jQuery实现CheckBox全选/全不选/反选的简单代码?

利用jQuery实现CheckBox全选/全不选/反选的简单代码?js中的反选是什么意思?代码示例:JS anti-select/select allJS在标题行中添加all复选框和anti-sele

利用jQuery实现CheckBox全选/全不选/反选的简单代码?

js中的反选是什么意思?

代码示例:

JS anti-select/select all

JS在标题行中添加all复选框和anti-select按钮,在数据行中添加name属性的复选框。

&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项="${ 页面列表}“

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>