Home  >  Article  >  Backend Development  >  javascript - jQuery('#confirm').removeAttr('disabled');这样的写法不能兼容IE系列,请给出兼容任何浏览器写法?

javascript - jQuery('#confirm').removeAttr('disabled');这样的写法不能兼容IE系列,请给出兼容任何浏览器写法?

WBOY
WBOYOriginal
2016-06-06 20:46:361009browse

jQuery('#confirm').removeAttr('disabled');

回复内容:

jQuery('#confirm').removeAttr('disabled');

jQuery('#confirm').attr('disabled',false);

<code class="lang-javascript">$(this).prop('disabled', false);
</code>

1、jQuery('#confirm').attr('disabled',false);
2、jQuery('#confirm')[0].disabled = false;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn