val('selected') code example
Example 1: jquery selected option
$( "#myselect option:selected" ).val();
Example 2: jquery this value
$( "input" )
var value = $( this ).val();
$( "#myselect option:selected" ).val();
$( "input" )
var value = $( this ).val();