Ajax jquery does not pass through function success [closed]

1

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";
 ?>
    
asked by jose miguel jara 26.03.2017 в 23:37
source

1 answer

3

I already found the error the function success was badly written I was missing a s

    
answered by 26.03.2017 в 23:44