Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
How to test if something was selected in a multi-select webdropdown
posted

What is the Javascript code to test if an item has been selected in a multi-select webdropdown? The following does not work:

if (document.getElementById("<%=WebDropDown1.ClientID%>").selectedIndex == 0) {

alert("Nothing selected. ");

return false;

Thank yuo.

Parents
No Data
Reply Children