jQuery UI non ajax tab loading whole website into itself?

前端 未结 7 1725
灰色年华
灰色年华 2021-02-07 03:00

Having a large problem with jQuery Tabs.

Im trying to load the tabs on my sites product page... When the page loads i see that tabs content for a second (standard html t

7条回答
  •  悲哀的现实
    2021-02-07 03:37

    My Conclusion

    var base=$('base').clone(true);
    
    $("#selector").dialog({
        open: function( event, ui ) {
            $('base').remove(); //Delete the Basepath to solve the Problem by loading Content
            $('#tabs').tabs();//Create the Tabs   
        }
        close: function( event, ui ) {base.insertAfter("head");
    });
    

    Maybe look at this it can be very helpfull to remove the basepath, than create your tabs(), and when your works with tabs are finished you have to append back to head

提交回复
热议问题