function LoseFocus(ddlElem) { ddlElem.blur(); var val = ddlElem.options[e.selectedIndex].value; if (val == "" || val == "Select") alert('Error'); }
<asp:DropDownList ID="DropDownCountry" runat="server" AutoPostBack="true" CssClass="input" Height="20px" onselectedindexchanged="DropDownCountry_SelectedIndexChanged" TabIndex="18" Width="99%" onchange="LoseFocus(this);" > </asp:DropDownList>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)