I'm new to Jquery,
I had found lot of ways for getting the selected text from dropdown.
This is the one among those.
$("option:selected", $("#TipoRecorde")).text();
There, what we call the 1st parameter(option:selected) ?
Is it a selector ?
$("option:selected", $("#TipoRecorde")).text();
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Midhun TpPosted Aug 24, 2016, 7:15 AM
Vinay SinghPosted Aug 24, 2016, 7:14 AM
Try:
Or to get the text of the option, use
text():More Info:
Sreekanth ReddyPosted Aug 24, 2016, 7:09 AM
Manas MohapatraPosted Aug 24, 2016, 6:55 AM