使用JavaScript将Textbox read only属性设置为true
问题描述:
如何在ASP.NET中使用JavaScript将Textbox read only属性设置为true或false?
How do you set the Textbox read only property to true or false using JavaScript in ASP.NET?
答
您可以尝试
document.getElementById("textboxid").readOnly = true;