限制表单多次提交:
表单只能提交一次 function check_form_data(){ $("#once_submit").attr("disabled","disabled"); $("#once_submit").css("background","#aaaaaa"); $('#once_submit').val('提交中...'); return true; } <form action="" method="post" onsubmit="return check_form_data()"> <input type="submit" id="once_submit" value="确认"> </form>