<title>jQuery UI Effects - Hide Demo</title>
border-bottom:5px solid #3399FF;
<a href="#" class="show_hide">Show/hide</a>
Fill this space with really interesting content. <a href="#" class="show_hide">hide</a></div>
My dilemma is that I want to repeat this show / hide dynamic in the context of a situation where I'll be looping through a database and I want that show / hide to appear with every question.
I started to think that what I could conceivably do is repeat that code for every question, but that seemed to me like I was overlooking something more elegant where I could simply pass in an "id" of some sort so the same code would effect different divs based on that id.
Sounds reasonable, but how?