I want to send without refreshing my page and using on change I am using the code below
Form:
<form action="" id="ajax_form" method="post" >
<input type="text" name="resultado1" size="5" onChange="envia()">
</form>
Submission script
jQuery('#ajax_form')(function envia() {
var dados = jQuery(this).serialize();
jQuery.ajax({
type: "POST",
url: "resultados.php",
data: dados,
success: function(data) {
alert(data);
}
});
return false;
});