gpt4 book ai didi

javascript - 目录列表随机显示在对话框内的 jQuery UI 选项卡中

转载 作者:行者123 更新时间:2023-11-30 06:30:18 25 4
gpt4 key购买 nike

我想在对话框中显示一个 jQuery UI 选项卡,但它无缘无故地显示了我的 asp.net 应用程序的目录列表。它还更改了我页面的 css。这是怎么回事?

ScreenShot

Javascript:

$("#editAddress").click(function () {
var personId = window.location.search.slice(1).split('=')[1];
//Use Get API to fill the form:
$.getJSON('/ipad/api/Address/' + personId, function (data) {
var tabs = $('#tabs');
$("#dialogAddress").empty().append(tabs);
$("#dialogAddress").dialog("open");
tabs.show();
tabs.tabs();
});
});

HTML:

<div id="tabs" style="display:none">      
<ul>
<li><a href="#tabs-1">Tab 1</a></li>
</ul>
<div id="tabs-1">
<fieldset>
<label for="address1">
Address1:</label>
<input type="text" name="address1" id="address1" value="" />
<label for="city">
City:</label>
<input type="text" name="city" id="city" value="" />
<label for="country">
Country:</label>
<input type="text" name="country" id="country" value="" />
</fieldset>
</div>
</div>

最佳答案

这可能可以通过在代码隐藏中设置超链接 href 来解决。我在使用 ASCX(用户控件)时遇到这样的问题。

我从这里得到了我的解决方案:asp.net user control, getting htmlAnchor resolve to href="#"

希望这对您有所帮助。

关于javascript - 目录列表随机显示在对话框内的 jQuery UI 选项卡中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18091474/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com