Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to get the selected text of dropdown in jquery

BY LOVE
$("#Id option:selected").text()
Comment

get text of selected option jquery

$('#id').children(':selected').text();
Comment

get text selected option jquery

$('#id option:selected').text()
Comment

get select option selected text jquery

$("#city_id option:selected").text();
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript random color generator 
Javascript :: javascript get element by class 
Javascript :: javascript loop through class elements 
Javascript :: js get element window offset top 
Javascript :: select2 destroy 
Javascript :: reload page jquery timer 
Javascript :: loop through object jquery 
Javascript :: javascript difference between two dates 
Javascript :: react native cover image 
Javascript :: google dinosaur game 
Javascript :: counterup2.js cdn 
Javascript :: jquery disable checkbox 
Javascript :: javascript run every 5 seconds 
Javascript :: es module __dirname alternative 
Javascript :: nest js install and create project 
Javascript :: javascript random number between 1 and 10 
Javascript :: on radio button change jquery 
Javascript :: discord.js all intents 
Javascript :: js timer reload page 
Javascript :: on enter key press react 
Javascript :: random number between min and max script 
Javascript :: javascript get table row count 
Javascript :: javascript get current month start and end date 
Javascript :: jquery disable class attribute 
Javascript :: href back page javascript 
Javascript :: how to use jquery in chrome dev tools 
Javascript :: jquery validation errorplacement 
Javascript :: get select2 selected value 
Javascript :: Sweetalert button color 
Javascript :: filter array with unique objects javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =