jquery submit button disabled after click code example
Example 1: jquery enable submit button
$("#submitButtonID").prop('disabled', true);
$("#submitButtonID").prop('disabled', false);
$("#submitButtonID").attr('disabled','disabled');
$("#submitButtonID").removeAttr('disabled');
Example 2: 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);
});
}
Example 3: how to make button disabled in jquery before send
$('#btnSubmit').attr("disabled", false);
or
$('#btnSubmit').removeAttr("disabled");