I just installed a slideDown panel from the “FAST QUOTE” button on the top of the page:
Is it possible to make the panel slideUp when the user clicks anywhere outside of the slideDown panel? Below the Panel?
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.
It seems you are using jQuery (Saw from jQuerify (Firebug)). So you need to trigger the close button click when you click in the outside area.
Assuming the slide events are on
.closeQ, specify your outsidearea and bind theclickevent to trigger the close button.Answering your comment:
On your slide down/up method add this code (at the first line (close first, open after))
It will find if the panel is open, and if it is opened it will trigger the event to close.