<div id="CompanyId" name="CompanyId" type="select" ></div>
方法是:
$("#CompanyId").attr("disabled", true);
最终会形成:
<div id="CompanyId" name="CompanyId" type="select" disabled></div>
<div id="CompanyId" name="CompanyId" type="select" ></div>
方法是:
$("#CompanyId").attr("disabled", true);
最终会形成:
<div id="CompanyId" name="CompanyId" type="select" disabled></div>
转载于:https://www.cnblogs.com/firstcsharp/p/11132897.html