Hello, I've working on a back-end for a company which is supposed to
work with their platform.

 The problem that I've encountered now is that I've been using a
plugin to enable rightClicking and also my script for a simple context
menu which can basically show a div. BUT I need it to be OOP and show
a unique context menu depending on child elements without having to
create more than one function since he later makes it a C Class.

Here is an example of my script:

$(function()
 {
        $('.ctxMenu > ul').hide();
        $('.rC').rightClick(function()
        {
                $('.ctxMenu > ul').show();
                $(this).sgMenu({ query: "ul" });

        });
 }
);

where ctxMenu is the class I'm using for context menus. I've been
thinking of using id's and class's on every context div but how would
I select them?

Reply via email to