The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Ok, I’ll just write my own function to detect the changes I need. The Ajax detection might help.
Thanks!
When I use the filter and select and option, there is no class that activates anywhere on the filter indicating activation/use. It only disables for a moment and then returns to normal. Also just to let you know that link you sent about the :parent selector is a hypothetical suggestion of css. The first line is there are no parent selectors in CSS.
<br />
But anyway all I want to know is if there is anywhere in the filter functions that goes off when the filter is used/active so that I can trigger other things to happen on the page when the filter isn’t showing “all results”.
Ok, I see what you are saying with the checkboxes. For the second one I don’t mean on an individual option. I mean I want to change the DOM based on if the entire filter has run or if it “clear”(showing all options). So as an example. I have the filter surrounded like this:
<div id="filter_holder" class="unactive">
<!-- filter is here -->
</div>
And when someone activates an option or multiple options on the filter I want to append a class to surrounding holder like:
<div id="filter_holder" class="active">
<!-- filter is here -->
</div>
This way I can show the users with extra css that the filter is narrowing down the results they are seeing.
I just noticed that the title of the topic was parsed out, it was supposed to say “select to ul possible?” so that might have made it a little confusing.
What I am hoping is to make it so that instead of the filter using the select elements and the code being:
<select name="input_name"><option value="1"><option value="2"><option>
It would render the drop downs as unordered lists so that they could be custom styled. like:
<ul name="input_name"><li>option 1</li><li>option 2</li></ul>
As for the second question, what I meant is so that when the form is submitted/changed by the user I want to append a new class to the filter/elements that shows that its active and remove it when the filter is just showing the default. Is there a specific hook I can use for when the form submits and has values vs when the form clears and returns to default.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy