how to check class is addclass in jquery code example Example: jquery add class to body $('body').addClass(newClass);