jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs Clicking/Detecting Disabled Tabs?

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Clicking/Detecting Disabled Tabs? #55531

    JonH
    Participant

    I’ve created a set of tabs, where the first tab contains person’s details, and the other tabs contain other information for the person.

    When adding a new person to the database, I disable all but the first tab, until the record is saved.

    This works as it should.

    What I am trying to do, is capture a “click” on the disabled tabs so I can display a message indicating that the record needs to be saved first.

    I tried adding an onclick event to my tab group, but it appears no click event is fired when the tab is disabled.

    Any ideas on how I might handle this?

    Thanks for your help.
    -jon

    Clicking/Detecting Disabled Tabs? #55571

    Dimitar
    Participant

    Hello jon,

    The tabclick event is not fired when you click on a disabled tab. Unfortunately, you also cannot subscribe to the jQuery click event of the tabs because when you add/remove/disable a tab, all tabs are re-rendered and the items selected by jQuery will no longer exist. Thus the requested functionality is not supported.

    Best Regards,
    Dimitar

    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.