页面表单元素置灰不可用的设置

$("#contentForm").find("input").each(function(){
    $(this).attr("disabled","disabled");
});
$("#contentForm").find("textarea").each(function(){
    $(this).attr("disabled","disabled");
});
$(":input[name='code']").attr("disabled", "disabled");

猜你喜欢

转载自geertu.iteye.com/blog/2366810