I want to put client validations to image before submit form.
var img = document.getElementById('imageid');
//or however you get a handle to the IMG
var width = img.clientWidth;
var height = img.clientHeight;
but its showing wrong dimentions.
can anybody help