function live was what I needed.
But now another question.
it's possible to make a POSTwith AJAX, via a button also created with
AJAX, and store the return in a CONTAINER that does not exist in the
DOM, but must exist when the POST is done?

I.E.

/*Action on a button that still exist in the DOM*/
$('#BtMoreDefeito').live("click", function(){
        $.post(
                'more_defeito.php',{
                                        //NumDef: NumDef,
                                        Str : $("#form-defeitos").serialize()
                                        },
                function(data){
                        //NumDef = new Number(NumDef + 1);

                        /*This ID will still exist in the DOM as well.*/

                        //$('#NumItem').val(NumDef);
                        var htmlStr = $('#result_defeitos').html();

                        /*This ID will still exist in the DOM as well.*/

                        $('#result_defeitos').html(data);
                }
        );
});

Reply via email to