on success replace class div ajax 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')