How to hide comments and only show when click on "show comments" |
[eluser]Volkof[/eluser]
Hi all, I'm implementing something like facebook comment; where a person posts something and other people can comment. So in my case, someone wrote a review, and anyone can comment on it. What i'm trying to figure out is how do you hide the comments, then only when you click on "show comments" will it display all the comments. I don't want to use the facebook plugin, cause I don't want people's comment to be viewable in facebook itself. Here is part of my code. Under //Comments for each Reviews, it displays all comments. I want to hide the comments. Code: if($reviews){ I read through this website, but it is a little different from what I want. It hides content for each comments, while I want to hide all the comments http://viralpatel.net/blogs/dynamically-...nk-jquery/
[eluser]InsiteFX[/eluser]
Random Snippets of Code for Web Developers This is what you are looking for: How to hide, show, or toggle your div |
Welcome Guest, Not a member yet? Register Sign In |