5

How do I use http://jqueryui.com/menu/ as a context menu on right mouse click. Is there a plugin or something?

jquery-1.9.0 jquery-ui-1.10.0

2

3 Answers 3

6

Here I started a plugin for this purpose: jquery-ui-contextmenu (supports delegation and creating menu definitions from JS objects).

Sign up to request clarification or add additional context in comments.

1 Comment

FYI I added ".css('z-index','9999')" in the create function. This makes the plugin perfect for use with jquery fullcalendar :)
4

Here's a solution quickly hacked together from the jquery ui sample page: jsBin

2 Comments

Thx it works but now I have the problem with hide() on left mouse click $(document).click(function (e) {$("#menu").hide();}); After hidding and clicking again menu possision is bad. maybe you know how to fix it?
Found the fix: $(document).click(function (e) { $("#menu").hide(); $("#menu").css("top", ""); $("#menu").css("left", ""); });
0

You can use a plugin I wrote called Audero Context Menu.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.