ajax success change class of 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')