title: Check if there's images on a folder
body: <p>I'm using an slideshow and I would like check if there any image on a specific folder since I'll make it all dynamically.
  I saw some questions here about this but can't get it work.</p>
  
  <pre><code>&lt;div class="foo"&gt;
      &lt;img src="images/[dynamic_folder_name]/1.jpg" alt="" /&gt;
      &lt;img src="images/[dynamic_folder_name]/2.jpg" alt="" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>There'll be allot of folders and maybe some could be empty so I wanna check with jquery if there's any images with those names and if not set a default image.</p>
  
  <p>If you have any other ideas for doing this instead of using jquery, you're more than welcome.</p>
  
  <p>Thanks in advance.</p>