Why is jQuery .live() not working with my .ajaxForm() invocation here?
<p>I have some code that looks like the following:</p>

<pre><code>jQuery("[name='myform']").live('submit', function() {
    $(this).ajaxForm({
    target: '#someform',
    beforeSerialize: function(form, options) {
      alert("BeforeSerialize happening.");
      jQuery('form[name=myform] input[type=submit]').attr('disabled', 'disabled').attr("value", "&lt;%= t('labels.please_wait') %&gt;");
          return true;
        }
        else {
          return false;
        }
      }
      return false;
    },

    success: function() {
      jQuery('#form_quotes_highlights_part').fadeIn('slow');
    },

    complete: function() {
      jQuery("#wizard").expose().close();
    }
  });
 }); 
</code></pre>

<p>The live() binding seems to work just fine, however the ajaxForm is not working at all. If I do something like:</p>

<pre><code> $(document).ready(function() {
      /* ajax form stuff here */
 });
</code></pre>

<p>It appears to work just fine. The only problem with that is, when the response comes back from the server, javascript handlers are not attaching themselves to the DOM properly, hence the use of live(). Either way, beforeSerialize is never invoked with the way I'm currently handling my live() handler, so instead of an ajaxForm, I'm having a full page submit.</p>

<p>What's the best way to clean this up?</p>
