change class of element after ajax success code example
Example: on success replace class div ajax
$(selector).replaceWith(content,function(index))
//example
$('alert').replaceWith('alert alert-success')
//or
$('alert').addClass('alert-succes')
$(selector).replaceWith(content,function(index))
//example
$('alert').replaceWith('alert alert-success')
//or
$('alert').addClass('alert-succes')