8 years ago. This is the simple yet efficient script to get the value of the selected option and use in your coding. Using $('#id') as Selector $ (" #dropdownList ").val (); The second one is the text value of the select element. You will get the multiple values in an array format in the alert message box. Is italicizing parts of dialogue for emphasis ever appropriate? Is it possible when we select the first box to select the same option number in the second box automatically? I am using an onchange event of select box with jquery. In this tutorial, learn how to get selected checkboxes id on click using jQuery. You can find the entered value in the given input box using jQuery val(). In if condition we are comparing the user selected value with dropdown value. What should I do when I have nothing to do at the end of a sprint? Quick note: you'll need to make sure to include the jQuery library somewhere above this code. How can I select an element by name with jQuery? when you click the button, you will get the entered value of the input box in the output. There are uses of the jQuery val method. How can I know which radio button is selected via jQuery? What guarantees that the published app matches the published open source code? Find multiple select box option value in jQuery. When the change event occurs, the change () method attaches a function with it to run. Ashish. Reply. Using this jQuery function it runs a loop to get the checked value and put it into an array. You have to use the jquery change method to Get Select Box Option Value on select of the options. You can use this jquery data() syntax for get data-textval attribute value. or another method for getting that method. You need to press both the control key of the keyboard and the left mouse button to select multiple values. The change event occurs when the value of an element has been changed (only works on ,