$input.disabled = true;
or
$input.disabled = \"disabled\";
Which is the standard way? And, conversely, how do yo
Disable all input:
input
[...document.querySelectorAll('input')].map(e => e.disabled = true);
Disable input with id="my-input"
id="my-input"
document.getElementById('my-input').disabled = true;
The question is with JQuery, it's just FYI.