ajax success to change class on another page 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')