---
title: "how to get drop down selected value in jQuery"  
description: "how to get drop down selected value in jQuery"  
author: "Anonymous User"  
published: 2018-06-18  
updated: 2018-06-18  
canonical: https://www.mindstick.com/forum/34521/how-to-get-drop-down-selected-value-in-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# how to get drop down selected value in jQuery

how to get [drop down](https://www.mindstick.com/forum/263/drop-down-list-problem) [selected value](https://www.mindstick.com/forum/525/get-selected-value-of-datagridviewcomboboxcolumn) in jQuery

## Replies

### Reply by Prakash nidhi Verma

[Drop](https://www.mindstick.com/forum/159392/how-to-fetch-the-value-of-the-selected-options-in-drop-down-in-php) down [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in jQuery :

HTML Markup consists of an HTML Select DropDownList and a Button.

For single select dom elements, to get the currently selected value:

```
$('#dropDownId').val(); $('#dropDownId :selected').text(); // currently selected text
```

Ex: Select color:

```
<select id="favcolor">
    <option value=""></option>
    <option value="1">Red</option>
    <option value="2">Blue</option>
    <option value="3">Black</option>
</select>
    <input type="button" id = "btnGet" value="Get Selected Text Value" />
    $(function () {
        $("#btnGet").click(function () {
            var selectedValue = $("favcolor").val();
            alert("Selected Value:" Value: "+ selectedValue);
        });
    });
</script>
```

Happy Coding :)


---

Original Source: https://www.mindstick.com/forum/34521/how-to-get-drop-down-selected-value-in-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
