I am using a javascript tab control and I have to use the below function along with the CSS for the links to act as a tab control... the problem is that as soon as I include this in my html,it prevents postback. 结果,单击第二个选项卡上的按钮会将其移回第一个选项卡。然后我必须再次单击第二个选项卡才能获得按钮单击的结果。
JavaScript:
<script type="text/javascript">
$(function () {
$("#tabs").tabs();
});
HTML:
<div id="tabs" class="ui-tabs">
<ul>
<li><a href="#tabs-1" class="ui-tabs">My Profile</a></li>
<li><a href="#tabs-2" class="ui-tabs">My AddressBook</a></li>
</ul>
<div id="tabs-1" class="ui-tabs"></div>
<div id="tabs-2" class="ui-tabs"></div>
</div>
有没有人有任何想法?