I am needing the hidden divs to be displayed ONLY when the pertaining link is clicked. I have been on a couple forums looking for an answer, but have yet asked the question myself. I am using Foundation Grid System and have very little knowledge of javascript/jquery. Thanks in advance for help that is given.
To view the markup..please follow the link: http://simplicitdesignanddevelopment.com/TENANT%20REP%20ZURB/tenant_reputations_home.html
Given your code, this jQuery function will work.
Demo
The second click on the same link will hide the paragraph. If it’s not what you want, replace
toggle()withshow(), orfadeIn(), orslideDown()…You need to include jQuery at first, right? 😉
If you’re having trouble implementing the function above in your real layout, please replace this part of your code:
with this one:
and my function with this:
Another demo