Question: how to validate dropdown selected value in javascript?
Answer: function Dropdown_Validation(ddlId) {
var ddl = document.getElementById(ddlId);
var ddlText = ddl.options[ddl.selectedIndex].text;
if (ddlText == "-Select-") {
alert('Please select an item');
return false;
} return true;