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

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -