Line of code in question:
$(this).find('select option:first').val();
If my select has this structure:
<select>
<option> -- choose -- </option>
<option value="some_value"> Some text</option>
</select>
the jQuery code I posted above will return --choose--
as a value. Is there a way I could understand if the option has a value or not, instead of returning the text in it?