[jQuery] Events, forms and AJAX

[jQuery] Events, forms and AJAX


Hi
I posted a question earlier, this is the updated version based on
further understanding.
in order fir Jquery to recognise the events of the second form I had
to nest the code this this:
$('form').submit(function(event){
        //$('#content').empty();
        $.post('../../forms.php',$
(this).find('input').serialize(),function(formA) {
            $('#content').empty().append(formA);
            $('form').submit(function(){
                $.post('../../forms.php',$
(this).find('input').serialize(),function(formB) {
                    $('#content').empty().append(formB);
                    });
                return false;
            });
        });
    return false;
    });
There must be a better way.
thanks in advance
slh