Just to expand the answer ...
The real problem is that you are trying to set false to false through setAttribute() , which does not behave as you expect. An element is disabled if the disabled-attribute is set regardless of the value, therefore disabled="true" , disabled="disabled" and disabled="false" equivalent: the element is disabled).
Instead, you should remove the full attribute.
$('#enb').click(function() { $('#inp').removeAttr('disabled'); });
source share