not familiar with the plugin, but from his views you can write:
$("#" + t.id).html();
but with most jQuery plugins you have to do this:
$(this).html();
out of context 'copy': function(t) {and'delete': function(t) {
$('#contacts tbody tr').contextMenu('myMenu1', {
bindings: {
'open': function(t) { ShowAction(t, "Open"); },
'email': function(t) { ShowAction(t, "Email"); },
'save': function(t) { ShowAction(t, "Save"); },
'delete': function(t) { ShowAction(t, "Delete"); }
}
});
function ShowAction(t, a) {
alert('Trigger was ' + t.id + '\nAction was ' + a + "\nHtml is " + $(t).html());
}
Here is a working example: http://jsfiddle.net/dNUgg/
I assume tags <tr>do not have an attributeid
<tr> , : http://jsfiddle.net/dNUgg/1/
alert('content is ' + $(t).text() + '\nAction was Delete');
jsfiddle: http://jsfiddle.net/gqhRV/1/
$(t.target).text(), $(t).text()