Studyon Minte9.com
jQuery

Study

Class property



Adds the specified class to element

// add class
$('#link').addClass('selected');
	OR
$('#link').attr('class', 'selected');

// remove class
$('#link').removeClass('selected');


http://api.jquery.com/addClass/
http://api.jquery.com/removeClass/