Toggle class in jQuery

jQuery(document).on('click','.replyPost, .cancelPost', function(){
jQuery(this).toggleClass("cancelPost replyPost");
});

Published
Categorized as jQuery