im building a search engine with php/sphinx/jquery and i have most of it working except for the filtering the search results. the search results aren’t filter submitted rather, all the results are displayed then im trying to use jquery to hide the unmatched results when a checkbox is clicked on.
i created a fiddle for it here http://jsfiddle.net/LEZAh/
what works:
checking a box and have the corresponding element show, and when another box is checked add it to the allowed boxes to show.
what doesn’t work:
when you have more than one checkbox checked and you uncheck one of them, the corresponding element does not show.
sorry for the bad explanation but the fillde will speak for its self thanks!
Just as an addition to the excellent post above (mrtsherman, ahren), the last line of your else statement was causing the problem. A quick and dirty solution would be:
I’ve run this in your fiddle successfully as well.