How to get $(this) selected option in jQuery?
javascript, jquery
Solution
For the selected value: `$(this).val()`
If you need the selected option element, `$("option:selected", this)`
Problem
The following code works: ``` $("#select-id").change(function(){ var cur_value = $('#select-id option:selected').text(); . . . }); ``` How to refactor the second line to: ``` var cur_value = $(this).***option-selected***.text(); ``` What do you use for `***option-selected***`?