Примерно вот так
JS:
HTML:
JS:
jQuery(document).ready(function($) {
$(document).on('click', '.selector', function(event) {
event.preventDefault();
$('html').removeClass('class1 class2 class3').addClass($(this).data('class'));
$(this).addClass('active').siblings().removeClass('active')
});
});
HTML:
<span class="selector" data-class="class1">class1</span>
<span class="selector" data-class="class2">class2</span>
<span class="selector" data-class="class3">class3</span>