---
title: "how to get drop down selected text in jQuery"  
description: "how to get drop down selected text in jQuery"  
author: "Anonymous User"  
published: 2018-06-18  
updated: 2018-06-18  
canonical: https://www.mindstick.com/forum/34522/how-to-get-drop-down-selected-text-in-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# how to get drop down selected text in jQuery

how to get [drop down selected](https://www.mindstick.com/forum/34521/how-to-get-drop-down-selected-value-in-jquery) [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) in jQuery

## Replies

### Reply by Prakash nidhi Verma

Jquery dropdown for text :

Here is the code for DropDownList control in ASP.NET :

```
<asp:DropDownList ID="DropDownList1" runat="server" >    <asp:ListItem Value="1">Allahabad</asp:ListItem>
   <asp:ListItem Value="2">Mindstick</asp:ListItem>
   <asp:ListItem Value="3">Software</asp:ListItem>
</asp:DropDownList>
```

Following JQuery code snippet will give you selected choice name from the above DropDownList control.

Sytax :

```
var country = $("#DropDownList1 option:selected").text(); 
```

Ex: In HTML/Jscipt :

Select color:

```
<select id="favcolor">
    <option value=""></option>
    <option value="1">Red</option>
    <option value="2">Yellow</option>
    <option value="3">White</option>
</select>
    <input type="button" id = "btnGet" value="Get Selected Text Value" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("#btnGet").click(function () {
            var selectedText = $("#ddlFruits").find("option:selected").text();
            alert("Selected Text: "selectedText");
        });
    });
</script>
```

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