Modifying jQuery tablefilter plugin

I need to modify this plugin to support the not (!), (! =), (AND), (OR) operators and add some range filtering. I tried adding an elseif statement on line 412, but it does not work. Here is the code I added.

 else if(/!/.test(SearchArgs[j]) && !isNaN(num_cell_data)) { num_cell_data != parseFloat(SearchArgs[j].replace(/!/,"")) ? occurence[j] = true : occurence[j] = false; } 
+7
source share
1 answer

num_cell_data can be integer or string, try adding parseFloat to num_cell_data:

 parseFloat(num_cell_data) != parseFloat(SearchArgs[j].replace(/!/,"")) ? ... 
+1
source

All Articles