我有以下功能,但是当单选按钮选择为否时它不会模糊。任何想法为什么?
表单元素:
<td>
Email: Yes? <input type="radio" name="emailquest" value="true" checked>
No? <input type="radio" name="emailquest" value="false">
</td>
<td>
<input type="text" name="email">
</td>
脚本:
<script>
$(document).ready(function(){
$("#emailquest").blur(function(){
if ($(this).val() != true)
$("#email").attr("disabled","disabled");
else
$("#email").removeAttr("disabled");
});
});
</script>