Make HTML Table Editable - jQuery Table.js

File Size: 4 KB
Views Total: 9020
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Make HTML Table Editable - jQuery Table.js

Table.js is a dead simple jQuery plugin that makes any HTML table editable just like the spreadsheet and MS Excel. The plugin will transform the table cells into input fields or select elements when clicked.

How to use it:

1. Include the table.js script after loading jQuery JavaScript library:

<script src="//"></script>
<script src="table.js"></script>

2. Call the function on your html table and specify the table cells should be editable.

<table id="test-table">
      <th>Column 2</th>
      <th>Column 3</th>
      <th>Column 4</th>
  cellType: 'td',

3. Apply additional CSS styles to the table cells when editing.

  inputCss: {
    padding: '0.75em'
    // more styles here

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