Thank you Waqar, while your code is much cleaner than mine is, I believe I have the show/hide javascript working just fine.
My issue is not with the showing/hiding, but with the url parameters that get "left behind" if you make a selection on one of them, then hide that one and show another to make a selection.
For example lets say you have one main category (cat1) and 2 subcategories (catA, catB) that show/hide through javascript based on your selection in cat1, the following happens by default in the url parameters
Starting URL before you make any filter selections
yoursite.com/search/?cat1=0&catA=0&catB=0
1- Make a selection on cat1
yoursite.com/search/?cat1=selection1&catA=0&catB=0
2- You then make a subcategory selection on catA
yoursite.com/search/?cat1=selection1&catA=anotherSelection&catB=0
3- then you decided you really wanted catB so you select that on the main category (cat1)
yoursite.com/search/?cat1=selection2&catA=anotherSelection&catB=0
As you can see, the subcategory parameter you selected in catA doesn't go away since all you did was hide the div.
4- then you make a subcategory selection on catB
yoursite.com/search/?cat1=selection2&catA=anotherSelection&catB=yourIntendedSelection
Now you are trying to search with two categories that the content wont share because the catA parameter never cleared when you switched main categories. This is the issue I am having. This also is the same issue if someone made a successful first search, then immediately goes into another search, it remembers the parameters set from the first search so any hidden filters that were used in the previous search still affect the next search.
This is the behavior I am hoping to fix. Is it possible?