filtering - JQuery Table Filter on Multiple Criteria -


is a table that I currently have three drop-down lists above in as the user to filter the results from each drop-down Selects, I would like to hide the table in the rows that are not fit in all the selected parameters so far. I found the closest to:

  $ ("# Report Controls # Select Inventory Reports"). Changes Filtrare (function () {$ ( "# report table tbody tr"). Hide (); Var filterArray = new Array (); Filtrare [0] = $ ( "# ddl style: selected"). Text () [ 1] = $ ( "# ddl size selected"). text () filterArray [2] = $ ( "#ddlColor: selected"). text () $ .each (filterArray, function (i) {if (FilterArray [ i] .toString ()! = "" style and amp; Filtrare [i] .toString ()! = "size" & amp; amp; Filtrare [i] .toString ()! = "color") {$ ( " # table report "). (" Td: ( "+ + Filtrare [i] included. ToString () +" ') "). Parents (" tr "). show ();}}); });  

The only issue with it is that it pulls back all the rows that have a fixed size or a certain color or a certain style that is just a fixed size and a certain color Instead, and a certain style

In that case:

  $ FilterArray, function (I) {if filterArray [i] .toString () == "style" || filter array [i] .toString () == "size" || filter [i] .toString () = = "Color") {filterAre [i] == ""}}); $ ( "Td: Kntans" ( "TD: Kntans (" "+ Filterarry [1]" ( "TD: Kntans (" "+ Filterarry [0] Ktostring () +" ') ". Ktostring () +" ("T."). ("Td: (" "+ FilterArray [2] .toString () +" ') ") Find parent (" tr "). Show ();  

It will always appear blank.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -