user1438823
user1438823

Reputation: 1313

Correct callback function when JQuery UI tab clicked

Anybody has an an IDEA why am I not getting alert-'load called'. When clicked on the tabs in the DEMO.

$(function() {  
var tabControl = $("#tabs");
alert('function called');
tabControl.tabs({ heightStyle: "auto",
    create: function( event, ui ) {
        console.log(ui);
    },             
    beforeLoad: function (event, ui) {

    },
    load: function (event, ui) {

    alert('load called');
    }
});
 });

Thank You!

Upvotes: 0

Views: 139

Answers (1)

MrDevel
MrDevel

Reputation: 168

Maybe you should try this:

activate: function( event, ui ) {
     alert('clicked')
}

Upvotes: 1

Related Questions