Ich habe einen modalen Dialog verwendet load() -Methode, aber jetzt weiß ich nicht, wie man es schließt.Schließen Sie ein Jquery-Modal mit load()
Die button
und div
:
<a href="#" id="btnAdd">Add</a>
<div id="AddModal" style="display:none"></div>
Script die modal aufzurufen:
$("#btnAdd").click(function() {
$("#AddModal").load("/Customer/Modal/AddCustomerModal.aspx").show();
});
AddCustomerModal
innerhalb des AddModal
geladen:
<body>
<div id="AddModalContent">
<h3>MODAL</h3>
XYZ<br />
<input type="button" class="btnCloseModal" value="Close" />
</div>
</body>
Script
zu schließen