I am trying to apply the sorter images to table sorter table like the below.But the styles are not applying. using the below js file
https://github.com/Mottie/ta
The latest version of tablesorter uses different class names from the original. Try using the following css:
.tablesorter thead tr .header {
background-image: url('/Public/images/sorter/bg.gif');
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
}
.tablesorter thead tr .headerSortAsc {
background-image: url('/Public/images/sorter/asc.gif');
}
.tablesorter thead tr .headerSortDesc {
background-image: url('/Public/images/sorter/desc.gif');
}
If you want to change the actual class name, then modify the cssAsc and cssDesc option.
Try to wrap your jQuery code inside DOM ready handler:
$(function() {
$('#requestheader').tablesorter({
/* theme: 'blue',*/
sortList: [
[1, 0]
],
widgets: ['zebra', 'columns']
});
});