Hi,
I'm fighting with the problem injecting my own toolbar via sDom variable as explained in the documentation. My sDom string looks like:
And I can see the div element with the id rendered properly but if I want to access it via jQuery selector like this (code below datatables initialization):
The new html content is not set. I used firebug to find the problem and figured out that when i set a breakpoint at the line above, the right content (<b>Toolbar</b) is set. So I guess the selector is triggered before the table is totally initialized or something like this. Does anyone of you have an idea?
thanks,
Max
I'm fighting with the problem injecting my own toolbar via sDom variable as explained in the documentation. My sDom string looks like:
"sDom": 'lT<"#rechnung_liste_toolbar">frtip',
And I can see the div element with the id rendered properly but if I want to access it via jQuery selector like this (code below datatables initialization):
$('#rechnung_liste_toolbar').html('<b>Toolbar</b>');
The new html content is not set. I used firebug to find the problem and figured out that when i set a breakpoint at the line above, the right content (<b>Toolbar</b) is set. So I guess the selector is triggered before the table is totally initialized or something like this. Does anyone of you have an idea?
thanks,
Max