Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
okay so in light of wanting to do this for a long time and finally finding the resources, i wanted to do a little show/hide with the comment section of each individual archive on my site (example page with comment section)...

the only problem is, when i try to implement the javascript show/hide function, it will only show/hide the main content included in the element that i am showing/hiding and will NEVER show anything that is in a <div> element inside of the main show/hide element...

so basically what i'm saying is the stripped down version of the show/hide area on the page looks like this...

Code:
<a href="javascript:handleParent(1)">Comments...</a>
<div id="showhide1">
  <div class="aboutHeader">Comments</div>

<div class="blogbody">
this is a comment
</div>

</div>

ps, i'm using the javascript code submitted by fugeelama in this thread, except i changed it a little so the function changes the showhide div
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.