Hi,
have the following button
- <div class="bootstrap_buttons">
Reset filter : <button type="button" class="reset btn btn-primary" data-column="0" data-filter="">Reset filters</button>
</div>
with following script in the head
- <script>
$(function () { - // filter button demo code
$('button.filter').click(function () {
var col = $(this).data('column'),
txt = $(this).data('filter');
$('table').find('.tablesorter-filter').val('').eq(col).val(txt);
$('table').trigger('search', false);
return false;
});
});
</script>
Tablesorter filter button working fine but I cant get it to add a full sort reset to the button. Ive tried adding
- .trigger('sortReset');
as well as adding as per the sortreset example
$('button').click(function(){
$('table').trigger('sortReset');
return false;
});
but nothing seems to work.
Thanks in advance for any tips on getting this going.
Cheers
Todd