title: Magnific Popup: How to add a custom close button inside a popup form?
body: <p>I have a form that opens up on a popup and have added a custom <code>close button</code> next to a submit button.</p>
  
  <p>This is a jQuery I am using for the close button:</p>
  
  <pre><code>$(document).ready(function() {
      $('#close').click(function() {
          $.magnificPopup.close();
      });
  });
  </code></pre>
  
  <p>However this does not seem to work. Does anyone know how to do this?</p>