Reputation: 67194
I made an attempt at changing the CSS of an element display: block;
when another div is enabled..
What am I doing wrong?
Website example: click FILTER MENY and select one of the filters. When the div "DU SØKER" is enabled, Filter Meny should stay open, when Du Søker is not enanbled (remove your filter choice) it should return to what it was doing previously.
Upvotes: 0
Views: 214
Reputation: 236002
First line in your example must look like:
if($('.box.expandResults')) {
missed a parenthesis and a dot.
Upvotes: 3