{hero}

pagingTag

Since: DataTables 1.13.2

Set the tag to use for the paging control.

Description

DataTables 1.x uses the a element for the pagination control elements. DataTables 2 will use a button element to help improve accessability. During the transition period you can use this option to control which tag will be used.

This will affect only the standard DataTables styling (e.g. for Bootstrap etc, it will have no affect). Additionally, when DataTables 2 is released this option will have no affect, with button elements always being used.

Type

This option can be given in the following type(s):

Default

a

Example

Use buttons for pagination:

$('#myTable').DataTable({
	pagingTag: 'button'
});

Related

The following options are directly related and may also be useful in your application development.