I want change my class=\"value\"
on select option using jQuery
Example
I achieved this by storing the default class, and removing that class whenever the select changes.
var selectedScheme = 'Default';
$('#color_scheme').change(function(){
$('span').removeClass(selectedScheme).addClass($(this).val());
selectedScheme = $(this).val();
});
A working example can be found here: http://jsfiddle.net/9PeAc/1/