Simple code to grab the dimensions of any image on your page. Here’s an example:
Tell JQuery to find out how big this image is by using:
var width = $("#my_image").width();
var height = $("#my_image").height();
Tags: code, dimensions, height, image, javascript, jquery, width