title: Ajax form within eModal does not submit
body: <p>I use <a href="https://github.com/saribe/eModal" rel="nofollow noreferrer">eModal</a> to call for a modal remotely via ajax. Although within the modal I have a form and the <em>javascript</em> code does not listen to it and thus it doesn't post. My codes are as follows;</p>
  
  <p>eModal and Ajax for the form;</p>
  
  <pre><code>    $(document).ready(function() {
  
      // process the PROJECT UPDATE form  
      $('#proj-edit').submit(function(event) {
  
      // get the form data
      var formData = {
          'projID'            : $('input[name=projID]').val(),
          'projname'          : $('input[name=projname]').val(),
          'projstart'         : $('input[name=projstart]').val(),
          'projend'           : $('input[name=projend]').val(),
          'projhotel'         : $('input[name=projhotel]').val(),
          'projcity'          : $('input[name=projcity]').val(),
          'projstatus'        : $('#projstatus').val()
      };
  
      if (formData.projname == ''      || 
          formData.projstart == ''     || 
          formData.projend == ''       || 
          formData.projhotel == ''     || 
          formData.projcity == '') {
  
          return false;
      }
  
      // process the form
      $.ajax({
          type        : 'POST',
          url         : 'inc/prjedit.ajax.php',
          data        : formData,
          dataType    : 'json',
          encode      : true
      })
          // using the done promise callback
          .done(function(data) {
  
              // log data to the console so we can see
              console.log(data); 
  
              // here we will handle errors and validation messages
              if ( ! data.success) {
  
              } else {
  
                  $('#proj-edit').trigger('reset');
                  swal("Success!", "Edit success!", "success");
              }
          })
  
          // using the fail promise callback
          .fail(function(data) {
  
              // show any errors
              console.log(data);
          });
      event.preventDefault();
  });
  
  $('button[id=demo]').click(function() {
          var value = $(this).val();
          ajaxDemo(value)
      });
  
      function ajaxDemo(value) {
          var title = 'Ajax modal';
          var params = {
              size: eModal.size.lg,
              title: title,
              type: 'GET',
              url: 'inc/demo.ajax.php?pID='+ value
          };
  
          eModal.setEModalOptions({ 
              loadingHtml: '&lt;div class="text-center"&gt;&lt;span class="fa fa-circle-o-notch fa-spin fa-5x text-primary"&gt;&lt;/span&gt;&lt;/div&gt;',
          });
  
          return eModal
              .ajax(params);
      }
  
  });
  </code></pre>
  
  <p>The modal content is rather simple; </p>
  
  <pre><code>&lt;form class="form" method="POST" action="" id="proj-edit" name="proj-edit"&gt;
  // the input fields are here. Although since it is too long, I did not include them in here.
  &lt;button type="submit" class="btn btn-info" name="update-prj"&gt;Register&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I should note that the <em>JavaScript</em> code is in a different document named magic.js, the modal works although it does not submit the form. What am I missing here or what am I doing wrong?</p>
  
  <hr>
  
  <p>The console log has this to say about all this;</p>
  
  <pre><code>(When eModal opens -&gt;) XHR finished loading: GET "http://localhost/parantez/inc/demo.ajax.php?pID=301".k.cors.a.crossDomain.send @ jQuery-2.1.4.min.js:4n.extend.ajax @ jQuery-2.1.4.min.js:4n.fn.load @ jQuery-2.1.4.min.js:4ajax @ eModal.js:336ajaxDemo @ magic.js:270(anonymous function) @ magic.js:253n.event.dispatch @ jQuery-2.1.4.min.js:3r.handle @ jQuery-2.1.4.min.js:3
  (When form is submitted -&gt;) Navigated to http://localhost/
  </code></pre>
  
  <hr>
  
  <h2>This issue has now been solved thanks to <a href="https://stackoverflow.com/a/17567208/4970703">this</a> post. Thank you very much for taking your time to answer, I highly appreciate your input. Kudos to all of you.</h2>