---
title: "Getting the text from a drop-down box"  
description: "Getting the text from a drop-down box"  
author: "Anonymous User"  
published: 2013-02-14  
updated: 2013-02-16  
canonical: https://www.mindstick.com/forum/605/getting-the-text-from-a-drop-down-box  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# Getting the text from a drop-down box

Hi MindStickians!

This gets the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) of whatever is selected in my [dropdown menu](https://www.mindstick.com/forum/158697/how-can-implement-a-dropdown-menu-or-navigation-bar-with-hover-effects-using-jquery).

document.getElementById('newSkill').value

For those not sure, here's the [HTML](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript) for a [drop down](https://www.mindstick.com/forum/263/drop-down-list-problem) box.

<[select](https://www.mindstick.com/forum/160534/orderby-then-select-vs-select-then-orderby-performance) [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide)="newSkill" id="newSkill">\
<[option](https://www.mindstick.com/forum/159391/jquery-get-selected-option-from-dropdown) value="1">A [skill](https://answers.mindstick.com/qa/62167/which-state-government-sets-up-a-skill-university-with-a-cost-of-850-crores)</option>\
<option value="2">Another skill</option>\
<option value="3">Yet another skill</option>\
</select>\

Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by AVADHESH PATEL

Hi John!

For getting the text from a drop-down box as below

var skillsSelect = document.getElementById("newSkill");\
var selectedText = skillsSelect.options[skillsSelect.selectedIndex].text;


---

Original Source: https://www.mindstick.com/forum/605/getting-the-text-from-a-drop-down-box

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
