cweston
cweston

Reputation: 11647

jQuery Tabs - Test if loaded

I have a jQuery dialog that is displayed on postback load. The problem however is that the dialog appears before the selected tab is set behind it, so the wrong tab is shown until the dialog is closed..

Is there a way to test and wait until the tabs are finished setting up before invoking the dialog?

Upvotes: 0

Views: 661

Answers (1)

Benoît Vidis
Benoît Vidis

Reputation: 3912

You can open the dialog from the tabs show event

$('#tabs').tabs({
  show: function(){
    $('mydialog').dialog('open');
  }
});

Upvotes: 1

Related Questions