jQuery Context Menu Plugin

Okay, this jQuery plugin (by Cory S.N. LaViska) is awesome:

Basically you can achieve a right-click drop-down menu via the following jQuery code:

$("#selector").contextMenu({
menu: 'myMenu'
});

Where ‘myMenu’ is the id of the HTML you want to appear as the menu:

<ul id="myMenu" class="contextMenu">
<li class="first_option"> <a href="#first_option">Option #1</a></li>
<li class="second_option"> <a href="#second_option">Option #2</a></li>
</ul>

I may need to use this in my next version of Chalk :-)

This entry was posted in Programming and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>