How to use jQuery to disable submit button?

So that it is no longer available for a click.

+4
source share
3 answers

Set the disabled attribute.

$("#buttonID").attr("disabled", "disabled");

+12
source

Must not be

 $("#buttonID").attr("disabled", true); 

?

+1
source
 $("#buttonID").attr("disabled", "disabled"); 
0
source

Source: https://habr.com/ru/post/1305605/


All Articles