views:

17

answers:

0

Hey guys,

I just installed jQuery UI and got its selectable working with a simple table and its rows. To add a bit more functionality I added a context menu using this context menu plugin.

If I use every element on its own, it works. But if I add the selectable and the context menu to the same elements in my DOM only the context menu works.

How can I solve that?

$('table').selectable({
    filter: 'tr',
    selected: function() { console.log('selected!'); },
}).find('tr').contextMenu({menu: 'context_menu'}, function() {console.log('hoho'); });

Thanks in advance