Drop down box to filter between different galleries

Is it possible to use a drop down box to filter between different image galleries?
I am completely new to wix code and have no idea what I’m doing and I just want to do this, so some help would be very much appreciated.

What i am trying to make is something like this: https://rsp.com.au/projects/ (at the top is a filter menu with different options and when you click it it shows the relevant images)

Thanks,
Alex

Hey Alexander,

Welcome to the Wix Code forums.

You will need to perform a search on your collection of images. You can learn how this is done from the article How to Use Code to Let Your Users Search a Collection . You could then set the gallery items to the results of the search.

Good luck,

Yisrael

Ok, thank you so much.
However is it possible to toggle the visibility of a gallery using a button, because i have two different galleries on one page. For example i have my design gallery hidden and then when i click the corresponding button it turns the visibility off of the old gallery and makes the design gallery visible. If that makes sense.

Thanks,
Alex

Hi Alex,
You can call the hide function at the onClick event of the button.

Good luck,
Tal.

Thank you, i ended up using the show function at the onClick event and then when you click a different galley it uses the hide function to hide the old galley and uses the show function the show the new galley. It all works now. Thanks