Change selected option by value on select list with jQuery

Posted by on Aug 10, 2010 in jQuery | 3 Comments

You have a select element, and you need to “select” one of its options based on one of its values. What you do is use the “selected-selector” of jQuery to do it in a single line. Lets say I have the following select element and I need to dynamically select the option with a value […]