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.
我在内容页面中使用下拉列表,所以我想验证 selectedIndex!=0 的下拉列表;
在此先感谢 N Mahesh Goud
你可以使用clientID属性,假设你的下拉列表 id 是 dropID 然后像这样访问:
clientID
document.getElementById ("<%= dropID.ClientID %>");