css selectors - JQuery DataTables - Applying styles to a specific table from multiple tables -


i have multiple tables on same page having different ids , dynamically generated. when try apply styles specific table referring table id, styles applied other table well.

$( '#'+ datatablename + ' .datatables_scrollhead thead').css("display", "none"); 

please let me know how handle such scenarios.

when modifying datatables way of times need reference #table-id_wrapper not #table-id. reason many of features injected html elements, not part of <table> element itself.

$( '#'+ datatablename + '_wrapper .datatables_scrollhead thead').css("display", "none");                          ^------- 

all datatables wrapped container on form

<div id="table-id_wrapper">...</div> 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -