Michael Phelps
Michael Phelps

Reputation: 3591

Callback after my tabs jquery ui create

I init jquery ui tabs like so:

$.ui.tabs( null,  $("#tabs")  );

How to initialize callback after creating my tabs?

Upvotes: 1

Views: 680

Answers (1)

Legendary
Legendary

Reputation: 2242

First way syntax:

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

Try, it helped, second way syntax

$( ".selector" ).on( "tabsload", function( event, ui ) {} );

Or, if you need exactly on create:

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

$( ".selector" ).on( "tabscreate", function( event, ui ) {} );

Upvotes: 1

Related Questions