find class name and append the element jquery code example Example: addclass jquery $( "p" ).addClass( "myClass yourClass" );