JavaScript validation for dropdownlist
This example show how dropdownlist should be selected using javascript.
function validate()
{
var ddlCountry = document.getElementById('<%=ddlParameter.ClientID%>');
if(ddlCountry.value==0)
{
alert("Not Selected..!");
ddlParameter.focus();
return false;
}
return true;
}
Thanks & Regards
Santosh Singh
Tuesday, August 24, 2010
Home »
JavaScript
» JavaScript validation for dropdownlist
Thank you
ReplyDeleteMadhu
Thx dis works 4 me
ReplyDelete