Take a look at the violin and let me know if you have any questions. the code is a little tight
http://jsfiddle.net/phfS8/1/
<select> <option value="google">google</option> <option value="yahoo">yahoo</option> </select> <img alt="google" src="http://www.google.com/favicon.ico"/> <img alt="yahoo" src="http://www.yahoo.com/favicon.ico"/> $('select').val(); $('img').click(function(){ $('option[value="' + $(this).attr("alt") + '"]').attr('selected', true); });
source share