0

I have a view with a exposed filter, the view have the following structure.

<div class="view">
 <div class="view-content">...</div>
</div>

The exposed filter is select type, I want add a class to the "view-content" depending of exposed filter value.

For example if the user chooses the option "Vegetables" then add the class "vegetables" to the view content, so that the structure of the view would be as follows

<div class="view">
  <div class="view-content vegetables">...</div>
</div>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.