Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82800

Accessing array of datatables

$
0
0
This is my code. But I am getting the following error.could any one help me:

TypeError: oTables[i].fnSettings is not a function
oTables=$(".reportResult").dataTable(
			{
				"aLengthMenu":[[10, 25, -1],[10, 25, "All"]],
				"iDisplayLength" : 10 
			});
function showAll()
{
	for(var i=0;i<oTables.length;i++)
	{
	  var oSettings = oTables[i].fnSettings();
          oSettings._iDisplayLength = 50;
          oTables[i].fnDraw();

	}
}

Viewing all articles
Browse latest Browse all 82800

Trending Articles