Disable Submit Button after one click with validation?

后端 未结 2 1558
名媛妹妹
名媛妹妹 2020-12-17 06:07

I have a form that is passing data to a cc processing terminal, as well as writing PDF contracts and receipts. There is validation built into the form, and I am trying to ad

2条回答
  •  旧时难觅i
    2020-12-17 06:23

    In your submit button code just add javascript code: and in Javascript add function:

    function disableFunction() {
        document.getElementById("btn1").disabled = 'true';
    }
    

提交回复
热议问题