Skip to Content
Home » Blog » Toggle divs independently with jQuery
Sorry, this post was outdated and has been removed.
Categories: Tutorials
Tags: jquery, script, toggle
How did you get rid of the parenthesis?
They are here:
$('.toggle').prev().append(' ('+showText+')');
Wrapped around the anchor. I just deleted them because they looked kinda funny with the way the toggle buttons are styled on this site.
Is there any way to capture the ID of the div that is clicked?
Hi Jere, what is it exactly that you’d like to do?
Name *
Email *
Website
Post code with the following format: [code]Mark up here[/code]
Notify me of followup comments via e-mail. subscribe without commenting.
4 comments so far

July 31, 2011How did you get rid of the parenthesis?

August 3, 2011They are here:
$('.toggle').prev().append(' ('+showText+')');
Wrapped around the anchor. I just deleted them because they looked kinda funny with the way the toggle buttons are styled on this site.

January 20, 2012Is there any way to capture the ID of the div that is clicked?

January 20, 2012Hi Jere, what is it exactly that you’d like to do?