Hi,

Im new to jquery and im struggling with hopefully a simple question!

Im using the Context Menu plugin - 
http://www.trendskitchens.co.nz/jquery/contextmenu/
which allows you to generate a right-click menu.  All works fine,
however im now trying to pass in the id of the item that has been
clicked upon.

Im listing several images on a page, and offering the right-click menu
for each.  I need to pass in the id of the image which has been
clicked.  Each image has a div with a unique id.

The documentation mentions "bindings" which i think is what im after,
but have no idea how to display the function pairs.  Here is the
description from the docs -

An object containing "id":function pairs. The supplied function is the
action to be performed when the associated item is clicked. The
element that triggered the current menu is passed to this handler as
the first parameter.

Can anyone advise me on how to proceed?

Best regards, Ben.

Reply via email to