Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

tableRowCheckboxToggle


Average rating
(4 votes)
  • 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 :)

Releases

Official releasesDateSizeLinksStatus
1.02008-Feb-2718 KBRecommended for 1.0.xThis is currently the recommended release for 1.0.x.