Can we connect two of the same plural nouns with a preposition? The short answer is: use jquery selectors :checked or $ (this) to get the radio button checked or selected value. Get selected text from a drop-down list (select box) using jQuery. descendants of DOM elements, all the way down to the last descendant. The function will turn the relevant option to selected. Rigorously prove the period of small oscillations by directly integrating, Service continues to act as shared when shared is set to false. Using JavaScript/jQuery I want find which option has the value of 102. From these, we select age limit in between 18-49 and lets . Return How to return with the text def. Note: The filter parameter is required for the @tom's code does what was asked: given a value. i append "John" if it is not already present in option value? The values must also be wrapped in quotes. jQuery select value lets you get the value of the selected option from the select boxes and dropdowns. Syntax: $ (selector).val (parameter) While using W3Schools, you agree to have read and accepted our, Return the descendants of an element by tag names, Required. On which browser/platform didn't it work for you? I would like to clear "not The .val() method is primarily used to get the values of form elements such as input, select and textarea.When called on an empty collection, it returns undefined.. to size each time user select drop down. Is `0.0.0.0/1` a valid IP address? JQuery: find the <optgroup> for a selected value in a <select> element Solution 1: You can do this using jQuery: $ ('select').change (function () { var selected = $ (':selected', this); alert (selected.closest ('optgroup').attr ('label')); }); See a live example here: http://jsfiddle.net/jkeyes/zjLCp/1/ value="3" > def abcdef lkjasd,