Here is an easy one, a true newbie question:
I know that it’s possible to get the text of the selection option like this
$('#selectBoxId option:selected').val();
But what if I already have the select object in my hand?
e.g.
var select = $('#selectBoxId');
What comes next? this is the right way?
select.find('option:selected').val();
Just
select.val();is enough. It will give you the selectedvalue.Working demo
If you want the selected option
textthen your need to doOr