With a $5 minimum deposit casino in Australia is a leading place to play poker online and get the best experience. So, i'm going by memory (and a bad one at that). You are correct about accessing the value using the value() method. I can do it by selectedvalue property but i want to do it by selected item not by selected value because my datatextfield and datavaluefield are different.Please help in this What I have tried: ddlcompany.selectedValue=session[ " companyname" ].ToString(); this works but I want it by selected item property possible duplicate of How to get the selected value of dropdownlist using JavaScript?-- despite the title, it answers your question. Using the @ViewChild decorator, we get ElementRef in the component class. The following code represents a sample DropDownList implementation that also renders the ID of the selected category next to the DropDownList. ; Populate its Data property with the collection of items you want to appear in the dropdown. Here Mudassar Ahmed Khan has explained with an example, how to get selected Value and selected Text of DropDownList in ASP.Net Core MVC. Please note, calling refresh on ALL .selectpicker elements can be slow. Get the combined text contents of The below code solves two problems: 1) dynamically set the selected value of the dropdownlist and 2) more importantly to create a dropdownlistfor for an indexed array in the model. If you need to removed any prior selected values, as would be the case if this is used multiple times you'd need to change it slightly so as to first remove the selected attribute Here Mudassar Ahmed Khan has explained with an example, how to get DropDownList Selected Text and Selected Value in Controller using Model in ASP.Net MVC Razor. So first, we will make a model for Employee. The ngModel is part of the forms module. $("#selectID option:selected").text(); Instead of #selectID you can use any jQuery selector, like .selectClass using class.. As mentioned in the documentation here.. I searched on google but didn't found the satisfactory answer. The :selected selector works for