DataTables zero configuration example

Preamble

DataTables has most features enabled by default, so all you need to do to use it with one of your own tables is to call the construction function (as shown below).

Live example

1 2 3 4 5
A D G J M
B E H
A B C
D E F
N
C F I L O

Initialisation code

$(document).ready(function() {
	$('#example').dataTable();
} );

Other examples

Basic initialisation

Advanced initialisation

Data sources

Server-side processing

API

Plug-ins

Please refer to the DataTables documentation for full information about its API properties and methods.