Hi, is there anyone please help me its argent............ :)
views:
21answers:
2why you are cloning and thn removing height attr?
Rakesh Juyal
2010-06-23 12:45:39
You can simply use`$('#imageId').attr("height");`
Mithun P
2010-06-23 12:46:48
+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
2010-06-23 12:41:18