jquery's API to add css class code example Example: addclass jquery $( "p" ).addClass( "myClass yourClass" );