Vasters Posted December 4, 2019 Share Posted December 4, 2019 So I would like my buttons in the NavBar to show different images in the caroussel. For example, if I click "tenerife" on the NavBar I want to see only my pictures from Tenerife in my carousel. If I click "La Palma" on the Navbar, I want to see pictures from La Palma. I'm able to create a Navbar and a carousel but how do I link the right pictures to the right NavBar item. Link to comment Share on other sites More sharing options...
dsonesuk Posted December 5, 2019 Share Posted December 5, 2019 Each navbar item will have unique id ref, the related images will have class name with same value. Then all you do is onclick of specific navbar item get id ref value and show only all images with class names of the same value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now