Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery disable button

$('.class').prop("disabled", true);
$('#id').prop("disabled", true);

// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #disable #button
ADD COMMENT
Topic
Name
2+4 =