0

I have a few toggle drawers that are closed by default (using jQuery to hide), and opened when their title is clicked.

I'd like to add anchors to the content within the div, and I'm trying to find a way to override the jQuery that's causing the drawer to close automatically.

Here's a fiddle that shows the jQuery code I'm using. Any suggestions on how I could make this work?

http://jsfiddle.net/bd1mbu5j/1/

$(".toggle_container").hide();
$("h3.trigger").click(function(){
    $(this).toggleClass("active").next().slideToggle("normal");
    return false; //Prevent the browser jump to the link anchor
});
Eric Wood
  • 579
  • 2
  • 9
  • 22

0 Answers0