JQuery Toggle Ignore Double Click
Just replace $(“.header”) with your selector.
function toggle() {
$(".header").unbind("click");
var next = $(this).next();
if (next.css("display") != "none")
next.hide("slow", bind);
else
next.show("slow", bind);
}
function bind() {
$(".header").click(toggle);
}
bind();
Filed under: Uncategorized on June 24th, 2010
Leave a Reply