jQuery UI non ajax tab loading whole website into itself?

前端 未结 7 1702
灰色年华
灰色年华 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:43

    This is a simple workaround that works inside your .js, so you can use a third-party copy for jquery.ui.
    Tested with Jquery UI 1.10.2.
    Resolve base meta tag problem and also the problem with the optional trailing slash n url.

    $("#mytabs UL LI A").each(function() {
        $(this).attr("href", location.href.toString()+$(this).attr("href"));
    });
    $("#mytabs").tabs();
    

提交回复
热议问题