Using the JQuery :contains function to decide which option on a select is selected from a SESSION variable.
The contains function is matching the wrong option as the
Try using .filter(), to find the option you want.
$('option').filter(function(){ return $(this).html() == ""; }).attr('selected', 'selected');