如何在运行时从ASP.NET MVC的文本框中删除禁用的属性
HTML格式
<input id="Yes" type="radio" value="Yes" tabindex="8" name="rdoRecommend" disabled="">
$('#Yes').removeAttr("disabled"); is not working.
最佳答案
使用$(document).ready-
$(document).ready(function(){
$('#Yes').removeAttr("disabled");
});
小提琴:http://jsfiddle.net/HfXBE/