JavaScript. How to Get Selected Value in DropDown List using jQuery JavaScript?-- Back to tutorial JavaScript ... Get Selected Value Text. Why are the edges of a broken glass almost opaque? See a demo below, where I created a select dropdown. That will help you to get right direction. You can try to run the following code to learn how to change the selected value of a drop-down list. Before click on the button. When a value is selected from a Dropdownlist in select event the selected value is available as following . Example: You have a database that stores Contact information and your DisplayText would be the Contacts Name and the Value would be the Primary Keys ID field for that particular row in the database. By using the $.val method of jQuery, you may get the value of any input form controls including HTML select. Above code is fully tested if you need further help let me know. By using jQuery we will retrieve the selected value and text of the dropdown list. The HTML Select DropDownList has been assigned a jQuery OnChange event handler. We can get value and text value of the option selected in the Dropdown using jQuery val() and text() methods. play_arrow code. Kendo DropDownList is not opening inside KendoTreeView. The following HTML Markup consists of an HTML Select DropDownList and a Button. This question need some moderation. You can use the below expression to get the selected value of drop down list $("#ddlCountries").val() Getting the selected text of dropdownlist: When you change the item, the option of the selected item will have an attribute selected with value also as selected. By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. To learn more, see our tips on writing great answers. Did "Antifa in Portland" issue an "anonymous tip" in Nov that John E. Sullivan be “locked out” of their circles because he is "agent provocateur"? Explain for kids — Why isn't Northern Ireland demanding a stay/leave referendum like Scotland? How to get selected text from a drop-down list using jQuery? Upvoted because this is the only answer not using jQuery. The most popular methods: // method 1 var text = $('#my-dropdown-id option:selected').text(); // method 2 var text = $('#my-dropdown-id').find(":selected").text(); Code example What was the name of this horror/science fiction story involving orcas/killer whales? I don't know why this is not working in IE, please help me. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. why do these two Meijer G functions not cancel each other? It only grabs the first selected value. Select Country