[jQuery] Get the content of an option element
Hi,
to get the selection option value, I use
$('#select').val();
But how do I get the content of the option ?
In other words:
<select id="select">
<option value="hello" selected>world</option>
</select>
$('#select').val(); will return "hello", but how do I get "world" ?
Thank you !
--
View this message in context: http://www.nabble.com/Get-the-content-of-an-option-element-tp20563344s27240p20563344.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.