jQuery ajax form submit - how to ensure dynamically loaded form’s action is used

jQuery ajax form submit - how to ensure dynamically loaded form’s action is used

Hi, i'm having a problem with dynamically loaded forms - instead of using the action attribute of the newly loaded form, my jquery code is still using the action attribute of the first form loaded. I have the following code:
  1.     $('input.next:not(#eligibility)').live("click", function(){
  2.         $(".form_container form").validationEngine({
  3.             ajaxSubmit: true,
  4.             ajaxSubmitFile: $(this).attr('action'),
  5.             success :  function() {
  6.                 var url = $('input.next').attr('rel');
  7.                 ajaxFormStage(url);
  8.             },
  9.             failure : function() {}
  10.         });
  11.     });

But when the next form is loaded, the above code does not pick up the new action attribute. I have tried adding the above code to my callback on successful ajax load, but no joy. Can anyone help? Many thanks