jquery child element as trigger

Posted by Dan w on Stack Overflow See other posts from Stack Overflow or by Dan w
Published on 2013-11-09T21:49:25Z Indexed on 2013/11/09 21:53 UTC
Read the original article Hit count: 251

Filed under:

When "forum-title" is clicked, I want "subtopic-frame" within the parent "forum-topics-head" to expand. There are multiple "forum-topics-head" (with all associated children) on this page.

The way I have it now, the "forum-topics-head" is the trigger, but I want the "forum-title" to be the trigger.

html:

<div class="forum-topic-head">
    <div class="forum-title">Forum Title</div>
    <div class="subtopic-frame">
        subtopic 1
        subtopic 2
    </div>
</div>

© Stack Overflow or respective owner

Related posts about jQuery