jquery: sorttable.makeSortable($('body').find(".sortable").get(0)); i found this solution on stackoverflow. No need to give an id to the table and it will sort all sortable tables on the page.