jQuery UI 1.10 tabs

The release notes for jQuery UI 1.10.0 lists the API changes.

To handle a tab selection, you previously had to use the tab index and add a handler on the select event.

The select event is gone now. You use activate in the new API.

The index is gone too. Now you use the newPanel attribute on the tab parameter in your activate handler. You can use the newPanel’s selector attribute to determine which tabs was just selected. Oops. I mean activated.

Play with it at JSBin:

JS Bin

Here is a Gist if you prefer that.

One Reply to “jQuery UI 1.10 tabs”

  1. Hi,

    I am working on SPring MVC with Jquery and I am looking for same thing. Created a tabbed ui and want to manage it through mvc. I am stuck almost the same situation where your post help me, how to call a action from here.
    Really nice post, please keep posting.

    Atul

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.