我在 ASP.NET C# 上使用 jQuery 对话框。当我单击“显示对话框”按钮时,会出现该对话框,并且“显示对话框”按钮也会显示在对话框上。 我想隐藏这个按钮。请帮我。 这是我的代码:
<script type="text/javascript">
$(".printt").live("click", function () {
$("#dialog").dialog({
title: "Password Confirm",
buttons: {
Ok: function () {
$("[id*=btnWhatch]").click();
},
Close: function () {
$(this).dialog('close');
}
},
});
return false;
});
</script>
和 ASPx
<div id="dialog">
<dx:ASPxButton ID="ShowDialog" CssClass="printt" runat="server" Text="Show Dialog">
</dx:ASPxButton>
</div>
感谢您的帮助!
最佳答案
只需在单击显示对话框
按钮后隐藏按钮即可。
$('#ShowDialog').hide();
关于javascript - 使用 Jquery 对话框隐藏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30408889/