全选插件
XML/HTML Code
- <form>
- <input id="demo" type="checkbox"> Check All
- <input type="checkbox" value="1"> option 1
- <input type="checkbox" value="2"> option 2
- <input type="checkbox" value="3"> option 3
- </form>
- <script>
- $(document).ready(function() {
- $('#demo').checkAll();
- });
- </script>
原文地址:http://www.freejs.net/article_biaodan_267.html