Generic placeholder image
3
Josephin DoeTyping . .
Generic placeholder image
1
Lary Doeonline
Generic placeholder image
Aliceonline
Generic placeholder image
1
Alia10 min ago
Generic placeholder image
Suzen15 min ago
Generic placeholder image
3
Josephin DoeTyping . .
Generic placeholder image
1
Lary Doeonline
Generic placeholder image
Aliceonline
Generic placeholder image
1
Alia10 min ago
Generic placeholder image
Suzen15 min ago
Generic placeholder image
3
Josephin DoeTyping . .
Generic placeholder image
1
Lary Doeonline
Generic placeholder image
Aliceonline
Generic placeholder image
1
Alia10 min ago
Generic placeholder image
Suzen15 min ago
Generic placeholder image
3
Josephin DoeTyping . .
Generic placeholder image
1
Lary Doeonline
Generic placeholder image
Aliceonline
Generic placeholder image
1
Alia10 min ago
Generic placeholder image
Suzen15 min ago
Josephin Doe
Generic placeholder image

hello Datta! Will you tell me something

about yourself?

8:20 a.m.

Ohh! very nice

8:22 a.m.

Generic placeholder image

can you help me?

8:20 a.m.

Zero Configuration
DataTables has most features enabled by default, so all you need to do to use it with your own tables is to call the construction function.
NamePositionOfficeAgeStart dateSalary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Quinn Flynn System Architect Edinburgh 61 2011/04/25 $320,800
NamePositionOfficeAgeStart dateSalary
Showing 1 to 5 of 5 entries
Default Ordering
With DataTables you can alter the ordering characteristics of the table at initialisation time. Using the order initialisation parameter
NamePositionOfficeAgeStart dateSalary
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Michael Silva Marketing Designer London 66 2012/11/27 $198,500
Paul Byrd Chief Financial Officer (CFO) New York 64 2010/06/09 $725,000
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Quinn Flynn System Architect Edinburgh 61 2011/04/25 $320,800
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Herrod Chandler Sales Assistant San Francisco 59 2012/08/06 $137,500
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
Rhona Davidson Integration Specialist Tokyo 55 2010/10/14 $327,900
Haley Kennedy Senior Marketing Designer London 43 2012/12/18 $313,500
NamePositionOfficeAgeStart dateSalary
Showing 1 to 10 of 20 entries
Multi-Column Ordering
DataTables allows ordering by multiple columns at the same time, which can be activated in a number of different ways
NamePositionOfficeAgeStart dateSalary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
NamePositionOfficeAgeStart dateSalary
Showing 1 to 10 of 20 entries
Complex Headers
When using tables to display data, you will often wish to display column information in groups. DataTables fully supports colspan and rowspan in the table's header
NameHR InformationContact
PositionSalaryOfficeExtn.E-mail
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
NamePositionSalaryOfficeExtn.E-mail
Showing 1 to 10 of 20 entries
DOM Positioning
When customising DataTables for your own usage, you might find that the default position of the feature elements (filter input etc) is not quite to your liking
Showing 1 to 10 of 20 entries
NamePositionOfficeAgeStart dateSalary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
NamePositionSalaryOfficeExtn.E-mail
Alternative Pagination
The default page control presented by DataTables (forward and backward buttons with up to 7 page numbers in-between) is fine for most situations, but there are cases where you may wish to customise the options presented to the end user.
NamePositionOfficeAgeStart dateSalary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
NamePositionOfficeAgeStart dateSalary
Showing 1 to 10 of 20 entries
Scroll - Vertical
This example shows the DataTables table body scrolling in the vertical direction. This can generally be seen as an alternative method to pagination for displaying a large table in a fairly small vertical area.
NamePositionOfficeAgeStart dateSalary
Name
Position
Office
Age
Start date
Salary
Name
Position
Office
Age
Start date
Salary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
Haley Kennedy Senior Marketing Designer London 43 2012/12/18 $313,500
Herrod Chandler Sales Assistant San Francisco 59 2012/08/06 $137,500
Jena Gaines Office Manager London 30 2008/12/19 $90,560
Michael Silva Marketing Designer London 66 2012/11/27 $198,500
Paul Byrd Chief Financial Officer (CFO) New York 64 2010/06/09 $725,000
Quinn Flynn System Architect Edinburgh 61 2011/04/25 $320,800
Quinn Flynn Support Lead Edinburgh 22 2013/03/03 $342,000
Rhona Davidson Integration Specialist Tokyo 55 2010/10/14 $327,900
Sonya Frost Software Engineer Edinburgh 23 2008/12/13 $103,600
Tatyana Fitzpatrick Regional Director London 19 2010/03/17 $385,750
NamePositionOfficeAgeStart dateSalary
Showing 1 to 20 of 20 entries
Scroll - Vertical, Dynamic Height
This example shows a vertically scrolling DataTable that makes use of the CSS3 vh unit in order to dynamically resize the viewport based on the browser window height
NamePositionOfficeAgeStart dateSalary
Name
Position
Office
Age
Start date
Salary
Name
Position
Office
Age
Start date
Salary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
Haley Kennedy Senior Marketing Designer London 43 2012/12/18 $313,500
Herrod Chandler Sales Assistant San Francisco 59 2012/08/06 $137,500
Jena Gaines Office Manager London 30 2008/12/19 $90,560
Michael Silva Marketing Designer London 66 2012/11/27 $198,500
Paul Byrd Chief Financial Officer (CFO) New York 64 2010/06/09 $725,000
Quinn Flynn System Architect Edinburgh 61 2011/04/25 $320,800
Quinn Flynn Support Lead Edinburgh 22 2013/03/03 $342,000
Rhona Davidson Integration Specialist Tokyo 55 2010/10/14 $327,900
Sonya Frost Software Engineer Edinburgh 23 2008/12/13 $103,600
Tatyana Fitzpatrick Regional Director London 19 2010/03/17 $385,750
NamePositionOfficeAgeStart dateSalary
Showing 1 to 20 of 20 entries
Language - Comma Decimal Place
A dot (.) is used to mark the decimal place in Javascript, however, many parts of the world use a comma (,) and other characters such as the Unicode decimal separator (⎖) or a dash (-) are often used to show the decimal place in a displayed number.
NamePositionOfficeAgeStart dateSalary
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
NamePositionOfficeAgeStart dateSalary
Showing 1 to 10 of 20 entries
// [ Zero Configuration ] start $('#simpletable').DataTable(); // [ Default Ordering ] start $('#order-table').DataTable({ "order": [ [3, "desc"] ] }); // [ Multi-Column Ordering ] $('#multi-colum-dt').DataTable({ columnDefs: [{ targets: [0], orderData: [0, 1] }, { targets: [1], orderData: [1, 0] }, { targets: [4], orderData: [4, 0] }] }); // [ Complex Headers ] $('#complex-dt').DataTable(); // [ DOM Positioning ] $('#DOM-dt').DataTable({ "dom": '<"top"i>rt<"bottom"flp><"clear">' }); // [ Alternative Pagination ] $('#alt-pg-dt').DataTable({ "pagingType": "full_numbers" }); // [ Scroll - Vertical ] $('#scr-vrt-dt').DataTable({ "scrollY": "200px", "scrollCollapse": true, "paging": false }); // [ Scroll - Vertical, Dynamic Height ] $('#scr-vtr-dynamic').DataTable({ scrollY: '50vh', scrollCollapse: true, paging: false }); // [ Language - Comma Decimal Place ] $('#lang-dt').DataTable({ "language": { "decimal": ",", "thousands": "." } });