Good morning! I'm using the following code to get the result of a form and throw it on the page without having to reload:
<script type="text/javascript"> // Script
jQuery(document).ready(function(){
jQuery('#ajax_form').submit(function(){
var dados = jQuery( this ).serialize();
jQuery.ajax({
type: "POST",
url: "salvaregistro.php",
data: dados,
success: function( data )
{
document.getElementById('resultado').innerHTML = data;
}
});
return false;
});
});
</script>
However, this code only launches the text. I would like to know if you have how to apply the fadein effect so the text appears softer, say ...