If you click on a cell on this page, it loads the larger version of the image. I’m trying to achieve this same effect.
What I have gotten so far: http://jsfiddle.net/8mYW9/
First off I know having the "appear" <div> is redundant – is there a good way to utilize $(this) and appendTo(); instead?
Ultimately my idea is to grab the id of the anchor contained within the div that is clicked and to append it to the cell. What should I be doing…?
If you change the ID attribute to class for the
appearelements you can do this:Demo: http://jsfiddle.net/8mYW9/7/
BTW you can’t have multiple elements with the same ID in a HTML document.