// With JQuery
$('#target').addClass('bar');
// With Prototypejs...
$('target').addClassName('bar');
// Removing a class with Jquery
$('#target').removeClass('bar');
// With Prototypejs...
$('target').removeClassName('bar');
Once again, jQuery has shorter function names which is awesome!