jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Disable by Class, not ID

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Disable by Class, not ID #22942

    Benji6996
    Participant

    Is it possible to disable an item in a menu using its class instead of id?

    At the moment I am using the following code:

    $("#jqxmenu").jqxMenu('disable', 'test', true);

    However, for this particular part of the menu, I cannot have any ID’s set on the elements… Therefore I must use classes, thus need to disable the items by class not id.

    Something like this:

    $("#jqxmenu").jqxMenu('disable', '.test-class', true);

    of

    $("#jqxmenu").jqxMenu('disable', $('.test-class'), true);
    Disable by Class, not ID #23067

    Peter Stoev
    Keymaster

    Hi,

    The “disable” method expects an ID. It will not work if you pass “class” as parameter.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.