Does anyone know why this AJAX
is not working? The variables are receiving the values, only the part of sending the data to actualiza.php
does not work.
$("#btnedit").click(function(){
var proc=$("#procedit").val();
var nome=$("#nomeedit").val();
var cc=$("#ccedit").val();
var data_nasc=$("#data_nascedit").val();
alert(proc);
alert(nome);
alert(cc);
alert(data_nasc);
$.post("actualiza.php",{ proc: proc, nome: nome, cc: cc, data_nasc: data_nasc },
function(data)
{
$("html").html(data);
});
});