標籤頁我正在使用jQuery的標籤控件:如何顯示在特定事業部
http://jqueryui.com/demos/tabs/#ajax
我的設計是:
<div class="container2">
<!-- review tabs -->
<div id="tab1">
<ul>
<li id="tf1"><a href="../LoadUserControl.aspx?ucid=1" title="tabs-1">Reviews</a></li>
<li id="tf2"><a href="../LoadUserControl.aspx?ucid=2" title="tabs-1">Apps of the Week</a></li>
<li id="tf3"><a href="../LoadUserControl.aspx?ucid=3" title="tabs-1">Videos</a></li>
<li id="tf4"><a href="../LoadUserControl.aspx?ucid=4" title="tabs-1">Photos</a></li>
</ul>
<!-- its showing content of tab here -->
</div>
<!-- I want to show content of tab page here -->
它通過下面的「</ul>
」裏的,我需要的是默認打開標籤頁標籤頁顯示出 「</ul>'s
」 父DIV的
的jQuery我使用:
$(function() {
$("#tab1").tabs({
ajaxOptions: {
error: function (xhr, status, index, anchor) {
$(anchor.hash).html(
"Couldn't load this tab. We'll try to fix this as soon as possible. " +
"If this wouldn't be a demo.");
}
}
});
});
我試圖用「.append()」,但它只是複製空白格。你可以plez給我一個示例代碼 –