jqueryjquery-uijquery-ui-tabs

With jQuery UI tabs, how can I run code after a click on a tab?


With jQuery UI tabs, you can use the select method to run code when a tab is clicked:

$( ".selector" ).tabs({
   select: function(event, ui) { ... }
});

But the code is run before the just clicked tab has been loaded. I need to run code after new tab has been loaded. How can I do this? Thanks for reading.


Solution

  • $( ".selector" ).tabs({
       load: function(event, ui) { ... }
    });
    

    from http://jqueryui.com/demos/tabs/