title: How to use Fancybox only on element id group
body: <p>I am trying to get Fancybox to only look at the images inside a particular element id. I have a page that has divs in it that each have a unique id like so :</p>
  
  <pre><code>&lt;div id="p23152" class="post bg2"&gt;
  </code></pre>
  
  <p>The problem when I fire fancybox on a page at the moment it grabs a thumbnail from every picture on the page, which can be hundreds.</p>
  
  <p>So what I want to do exactly is if someone clicks on a picture which belongs to a div with a unique id, I want fancybox to include only those pictures in that divs id, not as well as every other div as it does now.</p>