Hello,
I have three forms and using this jquery function
$('form').submit(function() {
$.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
success: function(response) {
$('#setInfo').fadeOut('500').empty().fadeIn('500').append(response);
}
});
return false;
});
to submit the form datas, but with this function i am stuck at loading the response at one particular div.
The data i send always have action=email, action=settings, etc depending on the form.
So how i can use it to load the response of settings in another div and email in another div and all other default in current div.
Thank You.