attach class to button jquery code example Example: jquery add class to body $('body').addClass(newClass);