As a beginner in the world of jQuery and coding, I'm encountering some difficulties that I need help with.
My goal is to have the 'Vlogging' link activated and show 'Details 1' when the page loads. Then, upon clicking on either 'Filmmaking' or 'Beme', 'Details 2 or 3 should be displayed while the previous one disappears.
I've managed to set everything up correctly so far, but I just need to figure out how to ensure that clicking on another link displays the corresponding 'Details' text.
Your assistance is greatly appreciated, and I currently have it all set up on a fiddle!
Here is the code that requires adjustment:
$(function() {
$("togglediv1").click(function() {
$("#togglediv1").removeClass("display-start");
$("li").removeClass("display");
$(this).addClass("display");
});
});