I am trying to get a WordPress image to change based on which tab is clicked.
I want the image to be replaced with a new image using jQuery’s fade effect. The image must be relative to the tab.
Example…
If tab “my1” is clicked, then replace current images with my1.jpg
If tab “my2” is clicked, then replace current images with my2.jpg
Any help, much appreciated 🙂
Here is a way to do what you want using jQuery UI tabs. It uses the “show” event to detect which ui.panel element is being displayed.
In the future, I’d recommend adding more specifics to your question, and providing a more simplified example. Your page had numerous scripts on it, which makes it difficult to look at your specific situation.