在 jAlert 中单击 OK 时不会触发任何内容,即使对话框也不会关闭:
$(document).ready(function () {
$("#confirm_button").click(function () {
jAlert("Submitted", "Approval", function () {
//My code goes in here
});
});
});
我需要点击 OK 来获取事件,请帮我解决这个问题!
的HTML
<html>
<head>
<title>Demo</title>
<script src="jquery.js" charset="utf-8" type="text/javascript"></script>
<script src="jquery.alerts.js" charset="utf-8" type="text/javascript"></script>
<link href="jquery.alerts.css" charset="utf-8" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
$(document).ready(function () {
$("#confirm_button").click(function () {
jAlert("Submitted", "Approval", function () {
//
});
});
});
</script>
</head>
<body>
<form runat="server">
<asp:Button ID="btnAlert" runat="server" Text="Click"/>
</form>
<input id="confirm_button" type="button" value="Show Confirm" />
</body>
</html>