how to remove class name and add class name in both class and id name in jquery code example Example: addclass removeclass jquery $( "p" ).addClass( "myClass yourClass" );