-3

How to get value of dropdown selection With JavaScript.I am try to get values of
Dropdown selection but I don't success this project.Please help me I am continue a web application project with JavaScript

2 Answers2

0

I would recomment you to use jQuery. Once you have jQuery all you need is $("#idOfSelection").val() to get your value. Without jQuery you would need document.getElementById("idOfSelection").value.

alex
  • 576
  • 4
  • 25
0

You can get the value of your drop down using this code. This is applicable in javascript and jquery enabled environment.

$("select[title='Status'] option:selected").text()
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Matek23
  • 1
  • 1