我有一些默认关闭的切换抽屉(使用jQuery隐藏),并在点击标题时打开。
我想在div中的内容中添加锚点,我正试图找到一种方法来覆盖导致抽屉自动关闭的jQuery。
这是一个小提琴,显示我正在使用的jQuery代码。关于如何使这项工作的任何建议?
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
});