views:

3553

answers:

1

$input.disabled = true

or

$input.disabled = "disabled";

Which is the standard way?

And,reversely,how to enable an input?

+7  A: 

Set the disabled attribute.

$input.attr('disabled','disabled');

To enable again

$input.removeAttr('disabled');
gnarf