Yet Another jQuery Context Menu Plugin - Singleton Contextmenu
| File Size: | 13.9KB |
|---|---|
| Views Total: | 849 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Singleton Contextmenu is yet another jQuery context menu plugin that allows you to create a right-click menu with custom callback on clicking.
You might also like:
- jQuery Right-click Menu Plugin - ContextMenu
- Simple jQuery Custom Context Menu Plugin
- Simple jQuery Right-Click Context Menu Plugin
Basic Usage:
1. Include jQuery library and jQuery Singleton Contextmenu on the page
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="jquery.singleton_contextmenu.js"></script>
2. Include Singleton Contextmenu CSS to style the menu
<link href="jquery.singleton_contextmenu.css" rel="stylesheet">
3. Markup
<div id="demo" class ="demo_box">Right Click Me</div>
4. The javascript (with no callback)
<script>
$(function()
{
$("#box_1").singleton_contextmenu
({
title: "1's menu",
items:
[
{label: "1's label 1"},
{label: "1's label 2"},
{label: "1's label 3"}
]
});
});
</script>
This awesome jQuery plugin is developed by salaj1986. For more Advanced Usages, please check the demo page or visit the official website.











