8

http://pastebin.com/YyDzQ4Bk this is a plugin for right click context menu, anyone know why it doesn't work in IE?

Not only that, it's breaking many of my other jQuery things, such as fancy box and some jQuery hover functions.

user264029
  • 105
  • 1
  • 1
  • 5

1 Answers1

32

Do you really need a plugin?

You could make your own context menu using contextmenu event:

$("element").bind("contextmenu",function(e) {
    e.preventDefault();

    // create and show menu
});

Some ways to achieve it

BrunoLM
  • 97,872
  • 84
  • 296
  • 452
  • Create a `ul`, `li` s. Append `li` to `ul` and append on the page. Set `ul` position to absolute, left and top with `e.pageX` and `e.pageY`. I will update my answers with some links. – BrunoLM Oct 22 '10 at 11:26
  • 3
    if the element is created dinamicy you need to use live instead of bind – Pedro Luz Mar 22 '11 at 13:24
  • 2
    now you should use .on if your element is created dynamically see: http://www.andismith.com/blog/2011/11/on-and-off/ – Wesley Smith Mar 09 '14 at 22:47