I have a div with some images, and when I clicked on those images I want another div to open with that Image that I clicked.
JS
$(\'
change line 3 to reference the image instead of its container:
$('#image-zoom img').attr("src",loc);