Introduction: In my previous article I have explained about Code used to How to show confirmation message while deleting grid view row . In this article I am going to explain about how validate drop down list or html select using Javascript . Explanation: For the explanation purpose I have a select list which contains city list along with select city as items. While clicking on the button it will check the selected index of the select. If it is 0 then it will show the alert as city is not selected. Else it will show the message as city is selected.
Asp.Net,C#.Net,SQL Server Articles, Source Codes and Examples