dataTables_info total entries inside tab
dataTables_info total entries inside tab
I have a multilevel tabbed menu with 3 levels and I have about 15 datatables in different tabs. I am trying to add the total of entries into a class that is attached to its specific tab, so users are able to see how many items are listed without having to go inside that tabs. originaly I was using
[code]
$(document.body).html(function () {
var n = $(".subject").length;
$(".quantnumbersubject").text(n);
});
[/code]
and I was getting the quantity displayed in the tab, but. It does not work properly because the Datatables only display "Y" about of the total because its the only thing it can read, and I need the total "X" of the table_info"
[quote]
"Showing 1 to Y of X entries"
I need X to put in the tabs.
[/quote]
Any suggestions on how to go about doing that?
Thank you in advance.
Fred.
[code]
$(document.body).html(function () {
var n = $(".subject").length;
$(".quantnumbersubject").text(n);
});
[/code]
and I was getting the quantity displayed in the tab, but. It does not work properly because the Datatables only display "Y" about of the total because its the only thing it can read, and I need the total "X" of the table_info"
[quote]
"Showing 1 to Y of X entries"
I need X to put in the tabs.
[/quote]
Any suggestions on how to go about doing that?
Thank you in advance.
Fred.
This discussion has been closed.