views:

56

answers:

1

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?

+1  A: 

You can open the dialog from the tabs show event

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