get selected option value jquery Example

Today, We want to share with you get selected option value jquery Example.In this post we will show you set selected value of dropdown in jquery, hear for how to get the multiple selected value of dropdown in jquery we will give you demo and example for implement.In this post, we will learn about get dropdown selected value in jquery on page load with an example.

get selected option value jquery Example

There are the Following The simple About jquery select dropdown option by value Full Information With Example and source code.

As I will cover this Post with live Working example to develop jquery get selecteds option value onchange, so the get selecteds value of dropdown in jquery on change is used for this example is following below.

get selected option value jquery Example
get selecteds option value jquery Example

You can get the two types of value from the


jQuery Code

The following below source code will get the text value of the selecteds option using jQuery Example.

        //var resultDataValue = $(this).val();
        //var resultDataValue = $('#your_selectbox_drop_down_id_name option[value="'+optionValue+'"]').text();
        var resultDataValue = $("#your_selectbox_drop_down_id_name option:selected").text();
        alert("Your Selecteds Option Text: "+resultDataValue);

Best Solution: Useing the simple jQuery :selected Selector

simple We can use the simple jQuery source code :here below example selected selector (id, class or html tags) in attribute data value combination with the using jquery val() method to search the select Box selected option value in a simple HTML Form select box or dropdown list.

How to Get the Value of Selected Option in a Select Box Using jQuery

Example 1:

jQuery Get Selected Option Value -



Example 2:

jQuery Get Selected Option Text -



Get Selected Options from Multiple Select Box

jQuery Get Multiple Selected Option Value -

Web Programming Tutorials Example with Demo

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

Leave a Comment