JavaScript Library For Easy Table Selection – SelectionTable

Category: Javascript , Table | August 20, 2015
Views Total:728 views
Official Page:Go to website
Last Update:August 20, 2015


JavaScript Library For Easy Table Selection – SelectionTable


SelectionTable is a lightweight JavaScript table library which allows you to select single or multiple table rows with checkboxes and display selected items in a new container.

Also provides a client side search functionality to filter out table rows based on user input.

How to use it:

Add the userstable.css and usertables.js to your webpage.

<link rel="stylesheet" href="userstable.css">
<script src="usertables.js"></script>

Markup html structure.

<div class="selection-table">
  <div class="elements-section cw">
    <input type="text" class="elements-filter" placeholder="Search" onkeyup="FilterElements(this)">
      <table class="elements-header">
          <td><input type="checkbox" id="all" onclick="SelectAll(this)"></td>
          <td>User Name</td>
    <div id="elements-contents" class="elements-contents ch">
      <table id="elements" class="elements">
  <div id="selected-elements" class="selected-elements cw">
    <div id="editedusers" class="selected-elements-contents"> </div>

Replace table data with yours.

 var allUsers = [{id:'1', name:'Monica Anderson'},...];

You Might Be Interested In:

Leave a Reply