Adding images to a div
Adding images to a div
Hello,
I'm currently building something in jQuery with which I can click on an image in one div and add it to another. This works with the following code;
-
$("div#images_all a:has(img)").click(function()
{
$($(this).html()).appendTo("div#images_select");
return false;
});
This works fine the way it does now but I'd like to have some additional features. I'd like to remove an image added to the "select div" on doubleclick and before adding an image to the "select div" I want to check if it hasn't been added previously, if that's the case then it shouldn't do anything.
I tried some code myself, but it not really going anywhere
Anybody who can help me out with this?
