jQuery清除文本框,内容并设置不可用

JQuery清除文本框,内容并设置不可用 
如果是设置只读,则将disabled换成readonly
function CleanText(textid)
{
    $("#"+textid).val(""); 
    $("#"+textid).attr("disabled","disabled"); 
} 

移除文本框不可用的属性,如果属性是readonly,写法类似。

function RemoveTextAttr(textid)
{
    $("#"+textid).removeAttr("disabled");
} 
原文地址:https://www.cnblogs.com/eric-qin/p/4389220.html