Is there a way to show an image in a larger div when clicked on another div with a smaller size?
Despite multiple attempts and various approaches, I have been unsuccessful in achieving this task. Thus, after hours of effort, I decided to seek help here. Below is my code snippet:
I am looking to showcase an image that is clicked in a smaller slide within a div named largerimage
.
$(document).ready(function(){
$("img").click(function()
{
$(".largerimage").show($this);
});
});