jQuery Select Option:Selected


Posted by Ben Johnson on 20 March 2011 | 0 Comments

A really simple Options selected fully cross browser that even works in IE6.

jQuery Select Option

$('select').change(function () {
     $(this).find('option').removeClass("selected");
     $(this).find('option:selected').addClass("selected");
});