I am trying to do something like: when user click on the button, the child panel will show/hide
but when i press on the button i get this error message :
Uncaught TypeError: Object [object Object] has no method ‘child’
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.
By the looks of things you need to refer to your child panel by it’s ‘id’ which I guess is ‘p’ from your code above.
So you’d want something like this: