Answers for "disable the submit button after one click"

2

button onclick disable after submit

onClick="this.form.submit(); this.disabled=true; this.value='Sending…'; "
Posted by: Guest on March-09-2021
1

disable button click jquery

function load(recieving_id){
    $('#roommate_but').prop('disabled', true);
    $.get('include.inc.php?i=' + recieving_id, function(data) {
        $("#roommate_but").html(data);
    });
}
Posted by: Guest on June-22-2020
0

disable button after one click

You can add an onclick handler to your button:

document.getElementById("idOfButton").onclick = function() {
    //disable
    this.disabled = true;

    //do some validation stuff
}
Posted by: Guest on June-28-2021

Code answers related to "disable the submit button after one click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language