我试图禁用一个按钮 - 在IE中使用jQuery 1.4.4以下代码
jQuery('#id').attr("disabled", true);
随着HTML的
<button id="id" type="button"
class="some-class"
disabled="">Comment</button>
Run Code Online (Sandbox Code Playgroud)
适用于FF,Chrome等,当然,在IE中不起作用?我该怎么办?
即<button disabled="disabled">在IE中似乎不起作用?
编辑:请注意,这<button id='id' disabled>foobar</button>是有效的HTML