I trying accordion menu on my html structure but i have a problem. I want, hide all body on off mode, when click caption div get all body elements. But you can see this link:
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use nextAll() instead to select all siblings after selection. As @Ales pointed out you were selecting just the thead element and toggling that.
Here’s an updated fiddle of what I think you were looking for http://jsfiddle.net/yF9bB/1/