jQuery实现checkboxlist的全选/全不选
2010-06-04 18:08
549 查看
HTML Code:
代码
代码
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>无标题页</title> <script type="text/javascript"> var checkItem=function(index) { if(index==1) { $("#chkCRREQ :checkbox").each(function(){$(this).attr("checked",true);}); } else { $("#chkCRREQ :checkbox").each(function(){$(this).attr("checked",false);}); } } </script> </head> <body> <form id="form1" runat="server"> <div> <table style="width:100%;" border="1"> <tr> <td colspan="3" align="center" style="font-size:larger;">CRREQ</td> </tr> <tr> <td colspan="3"> <input id="btnSelect" type="button" onclick="checkItem(1)" value="select all" /> <input id="btndeselect" type="button" onclick="checkItem(2)" value="deselect all" /> </td> </tr> <tr> <td> <asp:CheckBoxList ID="chkCRREQ" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%"> </asp:CheckBoxList> </td> </tr> </table> </div> </form> </body> </html>
相关文章推荐
- ASP.NET jQuery 实例6 (实现CheckBoxList成员全选或全取消)
- ASP.NET jQuery 食谱6 (实现CheckBoxList成员全选或全取消)
- ASP.NET jQuery 实例6 (实现CheckBoxList成员全选或全取消)
- jquery技术实现checkbox全选和取消全选的注意点
- 用Jquery实现checkbox的反选、全选、全不选
- jQuery实现checkbox全选在IE浏览器中不兼容问题
- jquery结合javascript实现无限级checkbox的全选与取消
- jQuery实现CheckBox全选、全不选
- Jquery 实现全选checkbox
- jQuery实现CheckBox全选、全不选
- 用Jquery实现checkbox的反选、全选、全不选
- jQuery实现CheckBox全选、全不选
- jquery实现 checkbox全选和反选 很常用噢....
- jquery实现checkbox全选全不选的简单实例
- Jquery 实现checkbox全选/取消全选
- Jquery实现checkbox全选
- jquery实现checkbox全选全不选的简单实例
- 利用jQuery实现全选、全不选、反选(checkBox)
- jQuery实现CheckBox全选、全不选
- jquery checkbox实现全选与反选