grabbing the class's of the divs that are visible and then adding a . to the front of each class that was found
<p>Trying to grab the class names of the divs that are visible and then prepend an decimal to the class names i get.
Any help would be great, thanks.</p>

<p>Here is what i have so far.</p>

<pre><code>$('#imagefiles ul li img').click(function() {
    var open = $(".open:visible").attr("class");
    var n = open.split(",");
    alert(n);
    });
 });
</code></pre>

<p>Only one div will be visible and that div will have two class names. the whole point of getting the classnames like this is so i can append an image to the open folder with the div edititable in it. when i try this code nothing happens. any thoughts? 
    $('#imagefiles ul li img').click(function() {
        //Get the source of the image that was clicked
        var img = $(this).attr('src');</p>

<pre><code>    //Grab the class name of the opened folder and prepend a decimal to it.
    var classes = $(".open:visible").attr("class").split(" ");
        var classesWithDot = "";

         $.each(classes, function (index, value) {
               classesWithDot += " ." + value;
           });

           $(' + classesWithDot + ').find('.edititable').append('&lt;img src="' + img + '" style="width:30%; height:30%;" "&gt;');


              });
</code></pre>
