Disable/enable an input with jQuery?
Asked 07 September, 2021
Viewed 2.1K times
  • 56
Votes
$input.disabled = true;

or

$input.disabled = "disabled";

Which is the standard way? And, conversely, how do you enable a disabled input?

19 Answer