我需要在ajax調用成功後打開模態窗口。需要在ajax成功後打開模態窗口
JQUERY:
$(".vijai").on("click", function(event) {
$.ajax({
url: "<?php echo $base ?>/retailer/Suppliersorder/Supplier_OrderPreview",
type: "post",
context: document.body,
async:false, //NOTE THIS
data: $("#myform").serialize(),
success: function(d) {
alert(d);
jQuery('#myModal').show();
}
});
});
HTML:
<button class="btn btn-success vijai" id='murugan'>
<i class="fa fa-search-plus"></i>
Order Preview
</button>
警報是否着火? –