Answers for "disable button after click"

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

On click, disable button

$("#btnSubmit").attr("disabled", true);
Posted by: Guest on May-17-2021
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 button after click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language