jQuery Plugin To Select Multiple Rows In A Table - multiselect

File Size: Unknown
Views Total: 36603
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin To Select Multiple Rows In A Table - multiselect

multiselect is a simple yet useful jQuery plugin which allows to select multiple rows of an Html table using left-click, Ctrl+Click, Shift+Click, Or Ctrl + A.

How to use it:

1. Load the jQuery multiselect plugin after the jQuery Javascript library.

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="multiselect.js" type="text/javascript"></script>

2. Call the function on the table to active the plugin.

$(function () {
  $('table').multiSelect();
})

3. Available options.

// active class
actcls: 'active',

// specify the selectable elements
selector: 'tbody tr',

// specify the selectable container
except: ['tbody'],

// rows with 'static' class will be unselectable
statics: ['.static'],

// callback function
// executes when one or mutiple rows are selected
callback: false

This awesome jQuery plugin is developed by gkShine. For more Advanced Usages, please check the demo page or visit the official website.