I'm currently using the following code to append a X link to each element on rollover.
$(".item").hover(function() {
var id = $(this).attr("id");
var roll = $('<a class="close" href="#">X</a>').hide();
roll.prependTo($(this)).fadeIn(0);
}, function() {
$(this).find("a:first").fadeOut(0, function() {
$(this).remove()
});
});
What I am unable to code up is the ability for when this X link is pressed, it removes the parent div it is currently in.
Would love help on this :)