troubleshooting Question

Making the follwind div tag show on click

Avatar of ShaneJones
ShaneJonesFlag for United Kingdom of Great Britain and Northern Ireland asked on
JavaScriptjQuery
9 Comments1 Solution860 ViewsLast Modified:
In my page I have it dynamically creating a line of text and then some content underneath it, this can happen a number of times depending on certain params.

What  I need is to make the following div tag display on the click of a <span> that I have created.

Where is my error below? as it doesnt seem to work!
// my jquery
 
	$(function() {
	        $("#support").click(function() { $("div", $(this).parent()).toggle("slow"); });
	});
 
//my html 
 
<p class="tbl_p_title"><span id="support">Click to Support</span> - Title - Track </a></p>
<div id="rate_hide">
   This is the content! hidden in the css
</div
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros