我已经实现了一个 jquery 弹出窗口
作为
<script type="text/javascript">
$(document).ready(function () {
$("input[id$=btnclick]").click(function () {
if ($("#content").html() != "") {
AlertDialog($("#content").html());
}
});
});
function AlertDialog(msg) {
$.modaldialog.success(msg, {
width: 400,
height: 100
});
}
// $(document).ready(function () {
// if ($("#content").html() != "") {
// AlertDialog($("#content").html());
// }
// });
</script>
<asp:Button ID="btnclick" runat="server" Text="click me" />
在 document.getready 上,弹出窗口正确打开,但单击时弹出窗口未打开。感谢您的帮助