Doesn't work, unless I click twice, but then runs twice
$(".pGHeader").on(
"click",
function(){
$(this).next().toggle();
}
);
Works
$(".pGHeader").on(
"click",
function(){alert("the hamster dance will never get old");
$(this).next().toggle();
}
);
Myabe some sort of race condition? But it works fine in FF and IE (yes even IE!) and this is the only spot I have JS running on that event... Oh maybe somethings bubbling too, I'll look into that.
Thanks
This post has been edited by Dormilich: 07 May 2012 - 07:17 AM

New Topic/Question
Reply



MultiQuote

|