Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

dynamic content in sinfo

$
0
0
Hi Allan,

I am trying to put dynamic content in "sInfo" in oLanguage but I am not getting the results:
"sDom": '<"H"><"top"i>tr',
"oLanguage": {
"sInfo": '<strong>Assignments List</strong> - You have a Total of _TOTAL_ Active Assignment(s) - (<span id="completedcnt"></span> of _TOTAL_ Completed)'
}

Below is the code to put value in the span:
$('span#completedcnt').html("3");
The above code doesn't seem to work.

When I view the html using firebug I can see that span is included in the header without value: 3
<div class="top">
	<div id="bundles_info" class="dataTables_info">
		<strong>Assignments List</strong> - You have a Total of 9 Active Assignment(s) - (<span id="completedcnt"></span> of 9 Completed)
	</div>
</div>

Regards,
Mathew

Viewing all articles
Browse latest Browse all 1816

Trending Articles