开发者

How to use jQuery tabs to link to a URL rather than load a tab using Html.ActionLink?

<ul>
    <li><a href="#tabs-1">Tab1</a></li>
  开发者_Python百科  <li>@Html.ActionLink("Test", "Test")</li>   
</ul>


From the docs you can learn how to use the select callback for that.

$('#example').tabs({
    select: function(event, ui) {
        var url = $.data(ui.tab, 'load.tabs');
        if( url ) {
            location.href = url;
            return false;
        }
        return true;
    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜