jQuery .prop(" disabled",false)无法在Chrome中运行 [英] jQuery .prop("disabled", false) not working in Chrome
问题描述
有.prop(禁用,false)的问题它在opera和firefox中工作得很好但IE和Chrome我无法让它工作..
having problems with .prop("disabled", false) it's works fine in opera and firefox but IE and chrome i can't get it to work..
Actualy它是一个邀请表格,我发送这样的发送按钮
Actualy it's a invination form and im make send button like this
<input id="sendInvite" class="mail_send" disabled="disabled" type="button" name="invite" value="Send">
这里是css
.mail_send[disabled="disabled"] {background-color:#343434; color:#747474}
因为你可以看到按钮被禁用而你无法点击,你必须先删除该按钮后禁用您的姓名和邮件,然后才能发送邮件。
这个im写代码在这里是:
http://pastebin.com/8u23G90b
So as you can see button is disabled and you can't click, you must first write your name and mail after that button is remove disabled and you can send mail. For this im write code here is: http://pastebin.com/8u23G90b
但这里出了点问题,Chrome和IE禁用从未从按钮中删除,我也加载了jquery 1.7.1
But something is wrong here, in chrome and IE disabled never removed from button, im also load jquery 1.7.1
ps抱歉对于我的英语
p.s sorry for my english
推荐答案
删除属性:
$('button').removeAttr("disabled");
参见。removeAttr()了解更多详情
这篇关于jQuery .prop(" disabled",false)无法在Chrome中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!