< option value = "val1" > Item 1 < option value = "val2" > Item 2 Get selected Text and Value of ASP.Net DropDownList on Button click using JavaScript The following HTML Markup consists of an ASP.Net DropDownList and a Button. MCSD[ASP.NET 4.5, SharePoint 2013], MCTS [WSS 3.0, MOSS 2007, SharePoint 2010], MCT Microsoft Community Contributor Award 2011 How to get the Highlighted/Selected text in JavaScript? The HTML Button has been assigned a jQuery OnClick event handler. padolsky 11-Aug-09 5:58. padolsky: 11-Aug-09 5:58 : I'm new to javascript so forgive me. In Default, the result the Dropdown1.Selected.Value formula returns is a first option value within the Dropdown control rather than Blank. ... How to set selected value in a Dropdownlist. How to get selected value in dropdown list using JavaScript ? Message 9 of 12 20,545 Views 1 Kudo Reply. This allows the user to get the value he selected from the dropdown list. Make sure you provide a valid email address, Get selected Text and Value of DropDownList using JavaScript and jQuery, Advertising campaigns or links to other sites. In a Javascript combobox you can set a selected value as you wish. Inside this event handler, the selected item (option) of HTML DropDownList (DropDown) control is removed (deleted). 1. Output: Before clicking the button: After clicking the button: Method 2: Using selectedIndex property with the option property: The selectedIndex property returns the index of the currently selected element in the dropdown list. So here, you’ll see our event handler because it’s generally considered best practice to define methods in your component, and then assign those methods to the e… Get Selected Day. After that, click on the Submit button to get the response. In this article, we explore the possible uses of drop-down lists using a select field, corresponding to the HTML select tag, and explain how to exploit the user's selection.. As shown in the above syntax , is a tag used to create Dropdown list.