title: Find element on site from a fancybox iframe
body: <p>I'm trying to update a element on my site from a fancybox. In the fancybox i do a <code>$.post()</code> and get back <code>html</code> data that i want to populate in a div on my page. I open up a <code>iframe</code> window with <code>html</code> and this script below is in that <code>iframe</code>. It cant find it from the fancybox so anybody got idea or solution on how to reach a element thats not inside the fancybox <code>iframe</code>?</p>
  
  <pre><code>$('.add-to-cart').click(function () {
      var $this = $(this).closest('form');
  
      $.post($this.attr('action'), { quantity: $this.find('#quantity_id').val() }, function (data) {
          parent.$.fancybox.close();
          $('#container').html(data);
      }, 'html');
  
      return false;
  });
  </code></pre>