jQuery tablesorter across multiple tables with the same id (not using attributes)

19 Views Asked by At

Is there a way to sort multiple tables that share the same id? Unfortunately I can't use classes or unique id's for this.

$('#fixed-columns-table').tablesorter({
    theme: uid,
    showProcessing: true,
    headerTemplate: '{content} {icon}',
    //dateformat : "mmddyyyy",
    dateformat: "yyyymmdd",
    widgets: ['uitheme', 'zebra', 'filter', 'stickyHeaders', 'scroller'],
    widgetOptions: {
        scroller_upAfterSort: true,
        scroller_jumpToHeader: true,

        scroller_height: 300,
        scroller_fixedColumns: startFixedColumns,
        scroller_addFixedOverlay: false,
        scroller_rowHighlight: 'hover',
        scroller_barWidth: null,

        // jQuery selector or object to attach sticky header to
        stickyHeaders_attachTo: '.wrapper_Table' // or $('.wrapper')
    }
});

I tried the answers on previously asked Questions with similar problems, but none of them have worked.

0

There are 0 best solutions below