我的模态中有一个提交按钮,按下它时什么也没有发生!按下提交按钮时如何提交表单?我不想使用 $('form').submit(); 因为那时 php 没有检测到我的按钮被点击了。
<script type="text/javascript" language="javascript">
$(document).ready(function () {
$('#btnAdd').click(function (e) {
//clicking the button shows the modal popup up
e.preventDefault();
$('#AddCareerItem').modal();
});
$('#btnCancelCareerContent').click(function (e) {
//close the modal with the cancel button
$.modal.close();
});
});
</script>