use .get(index) and removeClass jquery code example Example: addclass removeclass jquery $( "p" ).addClass( "myClass yourClass" );