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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -