Open pasquab opened 5 years ago
Hi @pasquab!
It's not working because tablesorter has already been initialized.
It is first initialized with no options in $table.tablesorter({})
; $table
is targeting all tables. So when the code $("#table1").tablesorter({...})
is executed, the entire block of code and options are ignored, because tablesorter has already been initialized on #table1
.
hi @Mottie! thank you for your support and fast re-action! Any advice how to make it happens?
Fyi; by removing ‘scroller‘ it works. But i need both combinations (scroller and filter) Thx for your help
Change $table
to target the other tables, not #table1
, using a more specific selector.
thx, i have still the same behavior..
There are too many document ready function blocks: $(function() {...})
. Remove all those wrappers, then only add one wrap around all the code; then move the initialization of #table1
to the top.
If that still doesn't work, then please add the HTML/script to this demo so I can more easily troubleshoot the problem.
Hi Mottie, thank you so much for your support and answers. I tried over 2 weeks, but i have still the same behavior. It is really hard to solve this really small bug on my side.. can you please support or show me how you think it would work?
I could help, but I would need to see the problem before I can tell you how to fix it. Please update the demo I shared in my last message with the minimal amount of JS/HTML needed to reproduce the problem.
Hi Mottie, demo created: https://jsfiddle.net/bilop/vwabo01q/30/ please try to click first red and then the blue link and then red one again. After the red link has been clicked again, alert message will pop up with "no results found ", but actually the results should be there. thank you for your support.
After updating the code in that demo, click the "Save" button, then share that new URL
done :) sorry for that.... https://jsfiddle.net/bilop/vwabo01q/30/ (also updated above)
Set the filter_searchFiltered
option to false
. When true
, it only searches through the already filtered rows (demo)
thank you!!!! now is clear really appreciate your support! Tested and it works fine
hi all I have an Issue with exact match only, with the combination of widgets: ['filter','scroller'], it does not work properly with similar name (example: putting 'Max' in the filter it works. Putting 'Max Miller' match not found, but if i put another name and then again 'Max Miller' the result is available. Thank you so much for your support and advice
CODE: