title: How to hide the close button of a fancybox based on a click within the fancybox
body: <p>We are currently using Fancybox2.</p>
  
  <p>On the first webpage, we click on a link to open a fancybox. Then inside the fancybox we have additional links. We want to be able to click on a link INSIDE the fancybox, which would then hide the top right close button.</p>
  
  <p>Here is the code that we have on the first webpage.</p>
  
  <p><code>$(".popupwindow").fancybox({
                  padding: 0,
                  margin : 50,
                  openEffect : 'elastic',
                  openSpeed  : 200,
                  closeEffect : 'elastic',
                  closeSpeed  : 150,
                  scrolling : 'visible',
                  width : '1040px',
                  height : '90%',
                  maxWidth : 1100,
                  closeClick : false,
                  iframe  :  {
                      scrolling : 'auto',
                      preload   : true
                              }
  }</code></p>
  
  <p>And here is the code that launches the fancybox </p>
  
  <p><code>&lt;a href="somewhere" class="popupwindow"&gt;Open fancybox &lt;/a&gt;</code></p>
  
  <p>Now we are in the fancybox. </p>
  
  <p>On the link click we have an id <code>&lt;a id="myTest"&gt;Something&lt;/a&gt;</code></p>
  
  <p>Then we track the clicks using this...</p>
  
  <pre><code>$("#myTest").click(function(){
  
  //At this point I'd like to hide the fancybox close button on top right.
  
  }
  </code></pre>
  
  <p>We know that if we put parent.$.fancybox.close() inside the function above, it will close the fancybox, however, how do we go about hiding the close button? Not sure what the syntax is.</p>
  
  <p>We see the following documentation on the website, and have tried multiple variations of it, but can't seem to get it to work.</p>
  
  <pre><code> $(".fancybox").fancybox({
     helpers: {
       closeBtn: false
     }
   });
  </code></pre>