I have a thumbnail. When i click on it, how can i enlarge it. I know there are many plugins that do this, but is there simple code that serve the purpose.
A:
If you're referring to a lightbox type scenario where the image pops up in front of the content, that's not possible with simple code. You'll need a plugin like Colorbox for that.
If you're talking about simply changing the dimensions of an image, you can do something like this:
$('#img1').width(500).height(500); // Change "500" to whatever size you want.
James Skidmore
2009-10-09 03:40:47