Reputation: 3
I see this in the console:
And this is my ajax:
$("#aceptar").click(function(){
dni = $("#dni").val();
passw = $("#pass").val();
alert(dni)
alert(passw)
$.ajax({
type: 'POST',
url: 'credenciales.php',
dataType : 'html',
data: {
dni: dni,
pass: passw,
},
success: function(suc) {
alert("jaja")
},
error: function() {
alert('An error occurred!');
}
});
})
In the php file I only have an echo, but anyway the alert has a "jaja", not the php echo, and still not working.
All my other jQuery code is working without problem. Does this means that only the ajax function is wrong in the library? I have tried with other libraries and im always getting the same error.
Upvotes: 0
Views: 120
Reputation: 146550
From the jQuery download page:
You can also use the slim build, which excludes the ajax and effects modules
Upvotes: 2