Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Target one specific Jquery Data Table theader for CSS styles

$(document).ready(function() {

  $('#example').DataTable( {

    "initComplete": function ( settings ) {
      $('#example thead tr th').each(function() {
        if ($(this).html() === 'Office') {
            $(this).css("color", "goldenrod");
        }
      }); 
    }

  } );

} );
 
PREVIOUS NEXT
Tagged: #Target #specific #Jquery #Data #Table #theader #CSS #styles
ADD COMMENT
Topic
Name
9+6 =