DataTables logo DataTables

This site contains the legacy documentation for DataTables v1.9 and earlier for reference only.
DataTables 1.10 is the current release and is now available.
DataTables HTML sorting auto-detection example


It can be very useful to have DataTables default to it's built in type of HTML, rather than string, which a column does not fit the requirements of any other type. The way this method works is to put the 'html' type at the end of aTypes, which means it will be set as that type only if none of the other types match the data in question.

Live example

Reflection Link
DataTables DataTables
Integrity A link to Integrity
Integrity Integrity

Initialisation code

	function ( sData ) {
		return 'html';

$(document).ready(function() {
} );

Other examples