I need to filter a list with a button that is passed multiple terms

Viewed 32

I am working on some code created by someone else and need to adjust it to include more terms.

The page has buttons that filters a list of doctors based on specialties but the terms are not all the same. Here is the code for the button:

<button class="doctor data-filter-button" data-filter="specialties" data-value="oculofacial">Med Spa / Oculoplastics</button>

This works for filtering based on the term 'oculofacial' but I also need it to include the term 'oculoplastic-surgery'. I attempted to pass multiple values into the data-value tag but it didn't work.

0 Answers
Related