javascript - How to change the thead's html of the dataTables -
i need add 2 <span>
(clear , check all) thead cell(except frist one).
i add fndrawcallback
$("#authmanageuserlisttable thead tr th").each(function(){ console.log($(this).html()); $(this).html(".....");//change here, not });
i use same method tbody , work. @ html dom , found th within #authmanageuserlisttable
not have text(html), instead, has aria-label
.
how should add 2 button thead can manipulate data @ column
very hard tell you're trying explanation..
something https://jsfiddle.net/yo68wrgb/ maybe?
$(function() { $( "th:nth-child(2)" ).append( "<span><input type='checkbox'></input> check all</span>" ); });
Comments
Post a Comment