I did a script using jQuery/Ajax in order to check some records in my MySql db. In the first page, I've put an input and a check button; in the second one (check_volto.php), this script should be checked, showing the result in the first page.
However, clicking the button the result doesn't appear and I have no clou the mistake I probably did.
pag 1
$(document).ready(function() {
$('.loading').hide();
});
function check_modifica_volto(){
var modifica_volto = $("#modifica_volto").val();
$('.loading').show();
$.post("check_volto.php", {
modifica_volto: $('#modifica_volto').val(),
}, function(response){
$('.info').fadeOut();
$('.loading').hide();
setTimeout("finishAjax('info', '"+escape(response)+"')", 450);
});
return false;
}
finishAjax('modifica_volto', response);
function finishAjax(id, response){
$('#'+id).after(response).fadeIn(1000);
}
<tr>
<td>