ASP.NET Core 1.1 Hosting: How to Make A Drop Down List Validation In ASP.NET Using JavaScript?

Today, we are going to learn how to validate the Drodown list usign Java Script, in ASP.NET. Create the Dropdown List and a button, as shown in the below code.
hflnet51ASP.NET Code

Now, write a JavaScript code to validate the dropdown list. Note – Write the JavaScript code in “Head” Tag.

JavaScript Code