$input.disabled = true
or
$input.disabled = "disabled";
Which is the standard way?
And,reversely,how to enable an input?
$input.disabled = true
or
$input.disabled = "disabled";
Which is the standard way?
And,reversely,how to enable an input?
Set the disabled attribute.
$input.attr('disabled','disabled');
To enable again
$input.removeAttr('disabled');