asp.net – $(“#dialog”).parent().appendTo($(“form:first”));
发布时间:2020-05-22 12:16:10 所属栏目:asp.Net 来源:互联网
导读:我正在我的页面上打开几个jQuery对话框,我正在使用: $(#dialog2).parent().appendTo($(form:first)); //This was working, no problem. 我注意到,当我再次将它应用于dialog3时,它已经停止了该对话框的工作.如何将它用于不同的对话框? $(#dialog2).dialog({
|
我正在我的页面上打开几个jQuery对话框,我正在使用: $("#dialog2").parent().appendTo($("form:first")); //This was working,no problem.
我注意到,当我再次将它应用于dialog3时,它已经停止了该对话框的工作.如何将它用于不同的对话框? $("#dialog2").dialog({
bgiframe: false,autoOpen: false,height: 410,width: 800,modal: true,draggable: true,resizable: true
});
$("#dialog2").parent().appendTo($("form:first")); //doesn't work now
$("#dialog3").dialog({
bgiframe: false,width: 600,resizable: true
});
$("#dialog3").parent().appendTo($("form:first"));
HTML: <div id="dialog3" title="Attachments">
<p id="P1">
<asp:Button ID="btnAttach" runat="server" Text="Attach files" class="float-left ui-button"/></p>
<fieldset>
</fieldset>
</div>
<div id="dialog2" title="Notes">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/icons/user_comment.png" />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Larger" Text="Notes"></asp:Label>
<br />
<div style="overflow: auto; height: 310px; width: 780px;">
<fieldset>
<br />
<asp:TextBox ID="txtNote" runat="server" CssClass="notetext" Width="740px" Rows="6"
TextMode="MultiLine" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" />
<br />
<div style="width: 743px">
<asp:Button ID="btnNoteSave" runat="server" Text="Save" class="float-right ui-button" />
</div>
</fieldset>
</div>
解决方法更好的一个 –$('#dialog2').dialog({
open:function(){{
$(this).parent().appendTo($("form:first"));
}}
});
$('#dialog3').dialog({
open:function(){{
$(this).parent().appendTo($("form:first"));
}}
}); (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 运行Quartz.NET嵌入式或作为Windows服务的优点和
- 如何在ASP.NET中获取原始请求体?
- 有没有带语音记录示例代码的ASP.NET?
- ASP.NET URL重写
- asp.net-mvc-4 – GoogleOauth2问题获取Internal Server 50
- asp.net – 为什么Web API请求的正文读取一次?
- asp.net-mvc-3 – 如何在自定义编辑器模板中获取模型的字段
- asp.net-mvc – 使用复杂类型嵌套对象的bind属性include和e
- asp.net-mvc – 在哪里?Json.Encode或@Json.Decode方法在M
- asp.net-mvc – MVC 4 Code First属性上的ForeignKeyAttrib
推荐文章
站长推荐
- asp.net – 覆盖webapi odata链接的主机
- asp.net-mvc – 哪一层应该构建一个View Model?
- asp.net – 缺少AuthenticationManager引用
- asp.net-mvc – 可以在ASP.NET MVC中本地化URL /
- asp.net – scriptresource.axd 404错误在asp ne
- asp.net – ViewModel的列表是空的
- asp.net-mvc – 如何在ASP.NET MVC路由中使用带有
- asp.net-mvc – 将JSON格式的DateTime传递给ASP.
- asp.net-mvc – ASP.NET MVC推荐的依赖注入框架是
- asp.net – 在Web.config更改后程序集不可用
热点阅读
