2011-08-21 41 views
2

您好我試圖觸發第一個選項卡時打開jQuery對話框。它適用於所有瀏覽器,但Safari瀏覽器。任何想法傢伙?標籤不觸發在safari jquery

  $('.dialog').dialog({ resizable: false, autoOpen: false, 'modal':true, 'width':900, 'height':500, 
       open: function(e,ui) { 
       $('#container-1').triggerTab(0); 
      }); 

這是在每一個瀏覽器,但Safari的工作,我也試着將return false;

$('#container-1').triggerTab(0);

但這也不管用。

我使用克勞斯哈特標籤插件任何想法傢伙?

回答

0

您的對話啓動確實看起來不正確。嘗試以下操作。

$('.dialog').dialog({ 
     open: function(e, ui) { 
      $('#container-1').triggerTab(0); 
     }, 
     resizable: false, 
     autoOpen: false, 
     modal: true, 
     width: 900, 
     height: 500 
    });