jquery disable all buttons code example
Example 1: jquery disable button
$('.class').prop("disabled", true);
$('#id').prop("disabled", true);
// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);
Example 2: how to disable all buttons in javascript
$("input[type=button]").attr("disabled", "disabled");