var $title = $(this).parents("#id_element").find(".title"); $title.addClass('processing'); ... success: () => { $title.removeClass('processing')
.title{ background: red; } .processing{ background: yellow; }