本文实例为大家分享了js实现全选反选不选功能的具体代码,供大家参考,具体内容如下
<!DOCTYPE html>
<html>
<meta charset='utf-8' />
<body>
<input type='checkbox' name='id' />哈哈<br>
<input type='checkbox' name='id' />哈哈<br>
<input type='checkbox' name='id' />哈哈<br>
<input type='checkbox' name='id' />哈哈<br>
<input type='button' name='id'