-1

スクリプトに問題があります。setTimout 内で jQuery.post 関数を使用していますがTypeError: g.nodeName is undefined、Firebug に戻ります。これが私のスクリプトです:

jQuery(function($) {
var timer;

    $("#tabela-orcamento .item .item-qtd .qtd-item").keyup(function() {     
        clearTimeout(timer);

        timer = setTimeout(function() {         
            $.post("../../aj_orc.php?op=atualizaQtd", {
                item: $(this).parents(".item").attr("data-item"),
                qtd: $(this).val()
            }, function(data) {
                $("#retornos").html(data);
            });
        },1000);
    });
});

何か間違えている?

4

1 に答える 1