Back
$input.disabled = true;
or
$input.disabled = "disabled";
Which is the standard way? And, conversely, how do you enable a disabled input?
See the code below:-
$("input").prop('disabled', true);$("input").prop('disabled', false);
$("input").prop('disabled', true);
$("input").prop('disabled', false);
Check out this Web Development Course to enhance your career!
31k questions
32.8k answers
501 comments
693 users