Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 javascript 中访问在 aspx 页面中设置为 Enabled="false" 的必填字段验证器?在选择另一个下拉列表时,应启用此 requiredfieldvalidator。
在您的 javascript 函数中,您需要类似...
document.getElementById("<%=valMyValidator.ClientId%>").enabled = true;