tableRowCheckboxToggle 介绍
- It generically adds the toggle checkBox function to any table rows you specify based on the css class names.
- It will by default toggle any checkBoxes within the table row.
- You can manually exclude checkBoxes based on name, id or css classes in the script.
- If there is any applicable checkBoxes inside of the table row that are checked, it will apply a class to the table row.
- It also marks table rows when there are checked applicable checkBoxes on page load.
Simply include jQuery and this javascript and customize below in the
javascript:
// give me a list of table rows classes you want to apply this affect to var tableRowCheckBoxToggleClasses=new Array('odd_row', 'even_row'); // give me a class name you want to add to the table row when there are checkBoxes checked var tableRowCheckBoxCheckedClass='marked'; // by default, this script will apply to checkBoxes within the rows specified // HOWEVER, you may manually exclude certain checkBoxes based on their name, id or class // specify below var excludeCheckBoxesWithNames=new Array('testName'); var excludeCheckBoxesWithIds=new Array('checkme100', 'checkme101'); var excludeCheckBoxesWithClasses=new Array('testClass');
It will just work :)
tableRowCheckboxToggle 官网
http://plugins.jquery.com/project/tableRowCheckboxToggle
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。