how can i use this jquery plugin theres no examples or guide
http://plugins.jquery.com/project/conmenu
its a plugin for right click menu..... however it has no example usages or illustration or demonstration....
like where can i include additional selector optio开发者_运维百科ns like top.document, or parent.window.document
$.conmenu({
selector:".node",
choices:[{
label:"Edit",
action:function(div){
var nid = $(div).attr("id").substring(5);
window.location.href = "/node/" + nid + "/edit";
}
}]
});
I would recommend looking at some other plugins as they are better documented. For example, this plugin has better docs and examples:
http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/
It is pretty simple to use, based on the documentation. Just paste in their sample, and then add in some more menu items, using their code as a template, and see what happens.
If you still have problems then you can ask here, showing the code that is causing you problems.
精彩评论