Vote count:
0
I have a profile editing form, I wanted to make it refresh the form's content upon on success callback in order to show the updated image in the form
success: function(response) {
if(response.success == 'success'){
$('#form').load();
$('#successful').show().html('<b>Edited saved!</b>');
}
}
//form
<div id="form">
//form here...
</div>
asked 2 mins ago
1 Answer
Vote count:
0
You can set the html first then show it:
$('#successful').html('<b>Edited saved!</b>').show();
answered 1 min ago
Aucun commentaire:
Enregistrer un commentaire