jQuery click event behaves differently with live function in Firefox

Posted by fjsj on Stack Overflow See other posts from Stack Overflow or by fjsj
Published on 2009-09-27T16:41:20Z Indexed on 2010/05/12 20:24 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

Using the event click with live function leads to strange behavior when using Firefox*. With live in Firefox, click is triggered when right-clicking also! The same does not happen in Internet Explorer 7 neither in Google Chrome.

Example:

  • Without live, go to demo and try right clicking the paragraphs. A dialog menu should appear.
  • With live, go to demo and try right clicking "Click me!". Now both dialog menu and "Another paragraph" appear.

*tested with firefox 3.5.3

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-live