DOM element not being found after cloning and appending unique ID
<p>So I'm creating a random string value:</p>

<pre><code>var randomString = function(stringLength) {
    var i = 0;
    stringLength = stringLength || 10;
    var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
    var randomString = '';
    for (i = 0; i &lt; stringLength; i += 1) {
        var rNum = Math.floor(Math.random() * chars.length);
        randomString += chars.substring(rNum, rNum + 1);
    }
    return randomString;
};
</code></pre>

<p>And associating it with a list element on one pane:</p>

<pre><code>var addUniqueId = function($thumbnail) {
    var random = randomString(10);
    $thumbnail.attr('id', 'rand-' + random);
};
</code></pre>

<p>And then cloning it and moving that list element to the right:</p>

<pre><code>    var cloneImage = function($thumbnail) {
        addUniqueId($thumbnail);
        var $lastImgAdded = $('.js-gallery-edit-pane li').last();
        var span = $('&lt;span /&gt;');
        span.addClass('x').text('x');
        var $clone = $thumbnail.clone(true, true).appendTo($('.js-gallery-edit-pane')).prepend(span).hide().fadeIn(200).unbind('click');
        bindRemoveHandler($clone);
    };
</code></pre>

<p>Then I add an overlay to the list element on the left to "gray" it out. Everything works at this point.</p>

<p>From there, a user can remove the recently cloned items on the right hand side by clicking the "X" on the image. This works fine and removes that recently cloned image, however, the original overlay is not being found. It should be associated with the random string value, so I'm just looking for that in <code>$('.js-gallery-select-pane').find('#rand-' + string).find('.overlay').remove();</code> but for some reason it's not finding it...</p>

<p>Any idea why?</p>

<p><a href="http://jsfiddle.net/CSM8d/" rel="nofollow">JSFiddle Demo</a></p>
