Jquery Click Event Not Firing On First Click, but does on second click, why?

前端 未结 4 1156
无人及你
无人及你 2021-02-15 15:20

I\'ve got a jQuery code, which

$("a.reply").click(function() {
//code
});

When I click the link with .reply class the fir

4条回答
  •  -上瘾入骨i
    2021-02-15 15:34

    This is a longshot, but are you running some sort of tracking script? Like webtrends or coremetrics (or even some of your own script, that's globally looking for all clicks)? I ran into a similar problem a while ago, where the initial-click was being captured by coremetrics. Just a thought.

提交回复
热议问题