Basic Table – A jQuery Responsive Tables Plugin

A simple basic jQuery plugin which gives a couple of options for displaying tables on handheld devices.

Tables are the necessary evil. Admit it! It is a bit painful to adjust tables on small devices so the information is presented beautifully and easily understood.

Jerry Low (the creator of this plugin) wanted to create a simple and lightweight plugin that will cope with responsive tables in terms of users that do not have the knowledge or the tools to set up the tags to achieve such CSS responsive tables. And the plugin is done just to get the job done.

It is a simple solution, you just need to choose your preferred look for the tables from this jQuery library and implement it. For more extensive library, you can check FooTable. If you are looking for other simple solution for responsive tables, you can refer to jQuery Restable.

Have a look below how to use the library and check out the demo:



Your table does not need any special setup. You can use thead with th tags or just all td the table will just read the first row as the headings. A standard table like the following will work.

<td>Test One</td>
<td>Test Two</td>
<td>Test Three</td>

Select the table with a standard jQuery selector then initiate the library.


Configure the options of the table during initialization. A list of options and their properties to follow. Here’s a sample of modifying the table’s breakpoint and force responsive property.

breakpoint: 1024,
forceResponsive: false


Here are some options to configure the way your responsive table works.

Related post:  jQuery UI Bootstrap - A Bootstrap-themed kickstart for jQuery UI widgets


integer, default: 568

Define the breakpoint (viewport’s width) when the table will engage in responsive mode.


boolean default: true

Wraps the original content within the cell in a span with class .bt-content, to help with CSS selection.


boolean default: true

The library will always force the table into responsive mode once the breakpoint is met. If this is set to false the table will only change mode when the table itself is larger than its immediate parent’s inner width.


boolean default: false

Disable Basic Table’s JS resize. The table won’t engage in responsive mode unless media query or another resize bind outside of Basic Table is defined.


boolean default: false

DWhen the library is initialize create a div wrapper around the table with class .bt-wrapper. This wrapper will toggle an active class when the table mode changes.


Call upon these methods anytime after Basic Table has initialized.


Engage the table in responsive mode. This method can only run after the table has been initialized.



Toggle the table back to normal mode, removing the responsive look. This does not destory the Basic Table data and wrappers. The table will still work once the breakpoint is met.



Destroy the the responsive bind on the table. This will remove all data and generated wrappers from the table, returning it to its initial state.


Download Basic Tables Demo

Divi WordPress Theme

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.