Call web service via Ajax with focusout function

0
 $("#<%=txtProduto.ClientID%>").on("focusout", function (event) {
            event.preventDefault();
            $.post(AjaxService.Pessoa(<%=txtProduto.ClientID%>), function (data) {
                $("#<%=txtPrecoUnitario.ClientID%>").val(data);
            });

        });

I'm trying to call web service service via Ajax , and this has parameters and should return me a value too.

The code above was what I tried but did not work.

    
asked by anonymous 27.03.2015 / 13:23

0 answers