JQuery Image Dimensions

Simple code to grab the dimensions of any image on your page. Here’s an example:

My Image

Tell JQuery to find out how big this image is by using:

var width = $("#my_image").width();
var height = $("#my_image").height();
Bookmark and Share

Tags: , , , , , ,

Leave a Reply