can't remove child from jQuery gallery on close
<p>Noob at this.  Started using jQuery last week and after about 10 hours of reading this site and the api have to ask this and hope for a direction.</p>

<p>Trying to remove the last image clicked from a gallery, so next gallery clicked will load first image instead of last image. (www.cooloradan.com).</p>

<p>My janky code (taken mostly from someone else): </p>

<pre><code>function loadPhoto($url, $caption) {/*Image pre-loader*/
    showPreloader();
    var img = new Image();
    $(img).load( function() {
        $(img).hide();
        hidePreloader();

     }).attr({ "src": $url });

    $('#largephotoc1').css('background-image','url("' + $url + '")');
    $('#largephotoc1').data('caption', $caption);
    $('#largephotoc2').css('background-image','url("' + $url + '")');
    $('#largephotoc2').data('caption', $caption);
    $('#largephotoc3').css('background-image','url("' + $url + '")');
    $('#largephotoc3').data('caption', $caption);
    $('#largephotoc4').css('background-image','url("' + $url + '")');
    $('#largephotoc4').data('caption', $caption);
    $('#largephoto3d1').css('background-image','url("' + $url + '")');
    $('#largephoto3d1').data('caption', $caption);
}

/* When a thumbnail is clicked*/
 $('.thumb_container').click(function() {
      var handler = $(this).find('.large_image');
      var newsrc  = handler.attr('src');
      var newcaption  = handler.attr('rel');
      loadPhoto(newsrc, newcaption);
 });

 $('.close-reveal-modal').click(function() {
    $('.thumb_container').find('.large_image').remove();
 });
</code></pre>

<p>html:</p>

<pre><code>&lt;div id="myModalc3" class="reveal-modal"&gt;
    &lt;div class="mainframe"&gt;
        &lt;div id="largephotoc3"&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="thumbnailimage"&gt;
        &lt;div class="thumb_container"&gt;
            &lt;div class="large_thumb"&gt;
                &lt;img src="images/album/modalthumbs/3d1.6.jpg" class="large_thumb_image" alt="thumb" /&gt;
                &lt;img alt="" src="images/album/modallarge/3d1.6.jpg" class="large_image" /&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;a class="close-reveal-modal"&gt;&lt;img src="images/icons/close.png"  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I don't know exactly what I'm trying to ask, but I'll keep looking and trying different things all night I'm sure though.</p>
