Subscribe to Youtube channel

Get value of dropdownlist or html select using Jquery

In Jquery, you need to write one line code to get value of dropdownlist.
You can use following code to get value of selected option

Var selectvalue=$('#urid').val();

You can use following code to get text of selected option

Var selecttext=$('#urid').text();

you are done......
 
Happy coding...........

Comments

Popular posts from this blog

Root your Gingerbread 2.3.4 android Mobile Phone

Implement Logging in CSV file using Nlog in .net core MVC application- part 2

Disable backspace key using Jquery

Devexpress Datebox date formatting in angular 6 with example

Implement Nlog in .Net core MVC application part 1

Restore the lost focus of Auto post back controls in asp.net update Panel control

How to Import CSV File and bind csv file data to gridview in asp.net using c#

Source Code Beautifier And Format Source Code For Blogger and Websites

Clone a generic list in C# using extension method