Context Menu

Ive been trying to get an example of a context menu working as simply as possible, but for some reason I cannot get it to work. Ive been playing with this on and off for a few months now, but really need to get it working, so requesting any experts help

My code stands at:-
<!DOCTYPE html>
<html xmlns="" xml:lang="de" lang="de">
    <meta charset="utf-8" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>jQuery contextMenu</title>

    <script src="jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
    <script src="jquery.contextMenu.js" type="text/javascript"></script>
<div id="div_666" class="context-menu-one box menu-1">
    <strong>right click me</strong>
    <script type="text/javascript">
                selector: '.context-menu-one', 
                callback: function(key, options) {
                    var m = "Default Callback clicked: " + key;
                items: {
                    "edit": {name: "Edit", icon: "edit" callback: function(){ alert('boo-' + $(this).attr('id');); } },
                    "cut": {name: "Cut", icon: "cut"},
                    "copy": {name: "Copy", icon: "copy"},
                    "paste": {name: "Paste", icon: "paste"},
                    "delete": {name: "Delete", icon: "delete"},
                    "sep1": "---------",
                    "quit": {name: "Quit", icon: "quit"}

Open in new window

Ive been using the examples at medialize.github but without any sucess.

If anyone has any advice, I would be extreamly gratful.

Thank you
Who is Participating?
jqwidgets has one we have gotten to implement relatively easily:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.