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

Disable backspace key using Jquery

Clone a generic list in C# using extension method

Add Comma automatically while entering amounts in textbox using Javascript

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

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

Send bulk Email in asp.net using excel file

Email validation using regular expression in jQuery

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