title: jQuery Modal Popup - Input Type set to null after postback
body: <p>I have a javascript function that gets a modal to displays after postback. </p>
  
  <pre><code>function pageLoad(sender, args) {
      //$('#EmailMarketingModal').parent().appendTo($("form:first"))
      if ($('[id$=hdf_ShowModal]').val() == "true") {
          $('#EmailMarketingModal').modal({ show: true });
      }
  }
  </code></pre>
  
  <p>This is set in my code-behind file.  This all works fine. However, I've noticed that the modal is always being created outside the form tag which means when I try to resubmit data on my form, the input type values are set to null.  Does anyone have a workaround for this?</p>
  
  <p>Thanks in advance. 
  Rob</p>