$('#c').val('325');
or
// earlier - define a text-equals selector jQuery.extend(jQuery.expr[":"], { "text-equals": function (a, i, m) { return (a.textContent||a.innerText||jQuery(a).text()||'')==m[3]; } }); // later - use it $red = $('#c option:text-equals(Red)'); $('#c').val($red.val());
A custom selector is one of the possibilities. For example, you can also do the same in the filter() callback.
Tomalak
source share