javascripthtml-tablefixed-header-tables

Change Javascript for multiple id table


I try to fix header table using this code CODE Here, but my real table id is:

<table id="table table-chrome table-striped wrapped-results  table-drilldown table-drilldown-cell"/>

So how can I change the Javascript to use that?


Solution

  • Here is an updated fiddle: http://jsfiddle.net/3q8py094/

    Create a new variable:

    var querySelector = 'table[id*=drilldown]';
    

    and then replace every reference to #maintable with querySelector

    Dan