vendredi 14 mars 2014

Reload form after success callback


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

conmen

392

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

Felix

13.1k




Aucun commentaire:

Enregistrer un commentaire