If you donโt know what the values โโare, but you know what the text is inside, you can use the selector :contains()to get the corresponding parameter, get its value, and then set select.
, :contains() , :contains(foo) <p>foo</p>, <p>barfoobar</p> ( ThiefMaster ).
.filter(), .
var _optionval = $('option:contains("B")').attr('value');
$('select').val(_optionval);
, .
:contains() . .
- .filter() .
$('option').filter(function () {
return $(this).text().indexOf('foo') === 0;
});