Hi Raj, I have done some modifications to your javascript code
function sugvalidate() {
var related = document.getElementById("<%= DropDownList1.ClientID %>");
var selectedText = related.options[related.selectedIndex].text;
var cat = document.getElementById("<%= txt_category.ClientID %>").value;
if (selectedText == "Other") {
if (cat === "") {
alert("Please specify Category");
return false;
}
}
}
Hope this will solve your problem. :-)