I have an ajax request to a php file but for some reason it does not go through the success function and I do not get an error. could see what the problem is, the file path is fine and I do not know what else it can be
// jquery
$("#lst_categoria").change(function(){
// lst_curso($(this).val());
alert("duhhhhbhubh");
var parametros =
{
"operacion":"curso_unico",
"id_cat" : $(this).val(),
}
$.ajax({
data: parametros,
url: 'prueba.php',
type: 'POST',
succes: function (response){
alert("pase por aqui");
alert(response);
$("#lst_curso").html(response);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
});
// file test.php
<?php
echo "algo";
?>