CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
Accordion collapse when click on div any where
naveedhabib
Permalink to comment
#
June 2012
Hi,
i'm using a jquery accordion on my website. When i click on the title div the content div is expand but when i click again any where on content div, the content div is close.
Is it possible that content div is close only when i click on title div.
Thanks.
url:
http://naveed.mirzamotors.com/
jquery file:
http://naveed.mirzamotors.com/js/jquery.vaccordion.js
Schmotty
Permalink to comment
#
June 2012
In your jQuery at the bottom of your page, try changing the #va-accordian selector to #va-title.
Add a Comment
i'm using a jquery accordion on my website. When i click on the title div the content div is expand but when i click again any where on content div, the content div is close.
Is it possible that content div is close only when i click on title div.
Thanks.
url: http://naveed.mirzamotors.com/
jquery file: http://naveed.mirzamotors.com/js/jquery.vaccordion.js