Get value of dropdownlist or html select using Jquery

In Jquery code 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();

Ur done......
Happy Jquering ,...........

Comments

Popular posts from this blog

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

Clone a generic list in C# using extension method

Disable backspace key using Jquery

Add Comma automatically while entering amounts in textbox using Javascript

Step by step migration of ASP.NET Core 2.2 to 3.1

Source Code Beautifier And Format Source Code For Blogger and Websites

Remove Owin from MVC 5 Application and use asp.net custom forms authentication

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

Email validation using regular expression in jQuery