I have a select control, and in a javascript variable I have a text string.
Using jQuery I want to set the selected element of the select control to be the item with
I haven't tested this, but this might work for you.
$("select#my-select option") .each(function() { this.selected = (this.text == myVal); });