限制表单多次提交:

表单只能提交一次

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>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2021-10-26
  • 2022-01-20
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-02-25
  • 2021-09-24
相关资源
相似解决方案