title: How to get a div popup by clicking submit button using fancy box / light box?
body: <p>my mark up</p>
  
  <pre><code>&lt;div class="popup bg-white"&gt;&lt;!--pop up box begins--&gt;
              &lt;a href="" class="close-btn fr center_text"&gt;
                  &lt;b class="small-font"&gt;X&lt;/b&gt;
                  &lt;span&gt;CLOSE&lt;/span&gt;
              &lt;/a&gt;
              &lt;div class="popup-title medium_18 font-bold"&gt;Please edit your details below:&lt;/div&gt;
              &lt;div class="clearfix"&gt;  
                  &lt;input type="text" class="input_box" value="" name="" placeholder="Miss Rachael Short" size="49" /&gt;
              &lt;/div&gt;  
              &lt;div class="clearfix"&gt;
                  &lt;input type="text" class="input_box" value="" name="" placeholder="Industrial Way" size="49" /&gt;
              &lt;/div&gt;  
              &lt;div class="clearfix"&gt;  
                  &lt;input type="text" class="input_box" value="" name="" placeholder="Bath" size="49" /&gt;
              &lt;/div&gt;
              &lt;div class="clearfix"&gt;  
                  &lt;input type="text" class="input_box" value="" name="" placeholder="Somerset" size="49" /&gt;
              &lt;/div&gt;  
              &lt;div class="clearfix"&gt;  
                  &lt;input type="text" class="input_box" value="" name="" placeholder="BA2 8SF" size="49" /&gt;
              &lt;/div&gt;
              &lt;button class="btn btn-common fr btn-big auto_width" value="submit" type="submit" name="submit"&gt;EDIT&lt;/button&gt;
          &lt;/div&gt;&lt;!--pop up box ends--&gt;
  </code></pre>
  
  <p>Button <code>&lt;button class="btn btn-common fl btn-myacc auto_width" value="submit" 
  type="submit" name="submit"&gt;EDIT&lt;/button&gt;</code></p>
  
  <p>[UPDATE]
  css <code>.popup { visiblity: hidden }</code></p>
  
  <p>I need to pop up that div <code>popup</code> when clicking the EDIT button.</p>
  
  <p>How can I rite the JS code for that?
  My site has <a href="https://github.com/fancyapps/fancyBox" rel="nofollow">fancybox</a> script in the header.</p>