I would like to change option into select if I click on some image. Value of option is a unique ID of parameter. I would like to use jQuery but I'm beginner and I don't know how. Now I have this:
$(document).ready(function () {
$('img').click(function(){
$("option:selected").removeAttr("selected");
$('option[value="' + $(this).attr("alt") + '"]').attr('selected', true);
});
});
But it doesn't work. All source are here http://jsfiddle.net/EKaKw/2/. Answer into jsfiddle would be best. Thanks advance.