View Full Version : Accordion header link

11-12-2009, 02:53 PM
1) Script Title: Accordion Content script (v1.7.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem:
I wonder is it possible somehow to make expanded header to remain expanded when you click on a link which is within that header.

here is the test page: http://www.zviz.net/TEST/accordion/studio-suradnici.html

What I'm trying to achieve is when you expand one header you get an mailto link inside, and when you click on that mailto instead of collapsing the header, to leave that header still expanded.

I found a solution how to "click through" : http://www.dynamicdrive.com/forums/showpost.php?p=184355&postcount=9 but don't know how to leave header expanded.

thanks in advance,

11-13-2009, 07:52 AM
Hmm actually by default clicking inside the sub content area of a header shouldn't collapse the header, since the "active" area is only within the header area. Looking at your HTML for your Accordion Content, it's hard to tell if there are any containership issues. The markup for the sub content should not be contained inside that of the header, but should exist on the same level, something like:

<h1 class="headerclass">Header Text</h1>

<div class="subcontent">Sub content here</div>