Hi,
I am trying to show/hide a div onlick of a button. I have followed the below article I found in this forum exactly and I keep getting jquery undefined errors? The only thing I didn’t follow was I added custom attribute on the buttons and added target=“id” instead of using just the id to trigger the event. I also did not use content areas instead I added the id and class to the section itself.
The only way it works is if I add the entire jquery library to the header. All of a sudden it works properly. This is a heavy load on the website and I don’t want to load the jquery library script in the header to make this happen.
What am I doing wrong?
Here is my code:
Button:
Section:
Section CSS: