tags:

views:

21

answers:

2

Hi, is there anyone please help me its argent............ :)

A: 

Try this

$('#imageId').clone().removeAttr("height").attr("height");

Mithun P
why you are cloning and thn removing height attr?
Rakesh Juyal
You can simply use`$('#imageId').attr("height");`
Mithun P
+1  A: 

You can use pure Javascript for this:

var img = document.getElementById('imageInQuestion'); 
var width = img.clientWidth;
var height = img.clientHeight;

Edit: (via jQuery (Although untested) )

var imgWidth = $("#imageInQuestion").width();
var imgWidth = $("#imageInQuestion").height();

I am assuming that by size, you meant dimensions, please correct me if I'm wrong.

Russell Dias