I would like to select an option in a drop down menu by its' text. When I run the code,:
var theText = "Large";
$("#size option:contains(" + theText + ")").attr('selected', 'selected');
it selects XLarge instead of Large. Is there any way to make it select Large? JSFiddle: http://jsfiddle.net/r8wuP/2/