Disable dropdowns on conditional filters
-
First of all, great plugin!
I’m currently building a site that uses Make / Model / Year filters to filter cars. Using the conditional filter aspect it works well and I was able to add a custom bit of css;
.select2-container–default .select2-results__option[aria-disabled=true] {
display:none !important;
}So that the non-aplicable options fully disappear as the user selects make > model > year
One other tweak that would be cool though is if it was possible to force the user to select ‘Make’ before ‘Model’ and ‘Year’ to effectively make those boxes empty (or at least appear empty), or disable the dropdown somehow until a make has first been chosen (then same for model, i.e.e only display ‘Year’ when a model has been chosen.
Is there a simple way to do this do you think?
I have a test page here: https://lowmoorcarbreakers.co.uk/site/breaking/
Thanks in advance.
- The topic ‘Disable dropdowns on conditional filters’ is closed to new replies.