Basic Responsive Table Plugin For jQuery - Basic Table

Basic Responsive Table Plugin For jQuery - Basic Table

Basic Table is an ultra-light jQuery plugin to create responsive, mobile-readable data tables using JS resize() method and CSS3 media queries.

See also:

How to use it:

1. Include the required jQuery basic table plugin's stylesheet in the head section of your web page.

<link rel="stylesheet" href="basictable.css">

2. Include the jQuery basic table plugin's script after you've installed jQuery library.

<script src="//"></script>
<script src="jquery.basictable.min.js"></script>

3. Create a standard table on your web page.

<table id="table">
      <td>Jill Smith</td>

4. The basic implementation using all default settings. Use breakpoint option to custom the viewport's width when the table will engage in responsive mode.

$('#table').basictable({breakpoint: 641});

5. Use CSS3 media queries instead of breakpoint option.

@media only screen and (max-width: 568px) {
  #table thead {
      display: none;
  #table tbody td {
      border: none !important;
      display: block;
      vertical-align: top;
  #table tbody td:before {
      content: attr(data-th) ": ";
      display: inline-block;
      font-weight: bold;
      width: 6.5em;
  #table tbody {
      display: none;

6. All the default settings.

  • breakpoint: 568: Custom breakpoint
  • contentWrap: true: Wraps the original content within the cell in a span with class .bt-content, to help with CSS selection.
  • forceResponsive: 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.
  • noResize: 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.
  • tableWrap: false: When 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.
  • showEmptyCells: false:When true, empty cells will be shown.

7. Available methods.


Change log:


  • No header support


  • JS clean up


  • Fix tables in IE9
  • Long text support


  • Add an option to show empty cells.


  • Fixed Multiple table selection


  • Added multiple heading row support with colspan heading. Also better tfoot support


  • Added support for tfoot and duplicated bt-content wrappers


  • Fixed missing second parameter

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

  • Publication date: 09.02.2018
  • Source