2011-10-11 51 views
2

我有一個頁面的一部分,我想加載使用ajax。內容是此嚮導的HTML:http://techlaboratory.net/labs/SmartWizard2/index.htmjQuery ajax:加載html +應用插件,ie7

什麼IM正在做。)

$(function(){ 

    $.ajax({ 
     url: 'content.htm', 
     dataType: 'html', 
     success: function(data) { 

      $('#content').html(data); 

      $('#wizard').smartWizard({ 

      //#wizard is inside the #content 

       transitionEffect:'fade', 
       onFinish: function() { 
        alert('finishClicked'); 
       } 

      }); 


     } 
    }); 

});  

該腳本工作正常,如果我只是用$( '#嚮導')的SmartWizard(,並保留一切對相同的頁面。但是當我用Ajax加載它不起作用。有誰能告訴我區別嗎?任何想法如何解決?由於

回答