var form = {
formid:'',
toupdate:'',
sendData: function() {
var _form = this;
$.ajax({
type: 'POST',
url: $(_form.formid).attr('action'),
data: $(_form.formid).serialize(),
beforeSend: function() {
$(_form.toupdate).html('').show().addClass('progress');
},
success: function(response) {
$(_form.toupdate).removeClass('progress').html(response);
},
complete: function() {
setTimeout(function() {
_form.toupdate.fadeOut(100);
},9000)
}
})
}
}

