Best way (with jQuery) to check that an empty <option> is not selected

http://stackoverflow.com/questions/16231789/best-way-with-jquery-to-check-that-an-empty-option-is-not-selected/16232032#16232032

HTML

<select id="mySelect" name="mySelect">
    <option>Please Choose</option>
    <option value="">Name A</option>
    <option value="2">Name B</option>
    <option value="3">Name B</option>
</select>
<a href="#" > test val </a>
<div />

JavaScript

$('a').click(function(e){
    e.preventDefault();
    
    // Check that the value and text of an option are different
var value = $('#mySelect').val();
var selectedOptionText = $('#mySelect option[value]:selected').text();
if($('#mySelect option[value]:selected').text()=='')
    $('div').text("no value");
else
    $('div').text("result:"+selectedOptionText);
});