jQuery get selected option value from dropdown

Avatar
M

Maksudur Rahman

Software Engineer

7617Views
5mRead
0Reactions

For dropdown options you probably want something like this:

# Get selected value

$('#aioConceptName').find(":selected").val();

#  Get selected text

$('#aioConceptName').find(":selected").val();

 

Another way to get value

$( "#myselect option:selected" ).val();

Recommended Resources & Courses

React to this article