use of addclass function in jquery code example
Example 1: addclass jquery
$( "p" ).addClass( "myClass yourClass" );
Example 2: jquery add class to body
$('body').addClass(newClass);
$( "p" ).addClass( "myClass yourClass" );
$('body').addClass(newClass);