jquery select option by text

JavaScript
$("#myDropdown option:contains(Option 2)").attr('selected', 'selected');
Source

Also in JavaScript: