I am trying to use offsetHeight to find the height of an element based on its class, so far I can find the height based on div id, but what if I have multiple classes assigned to the same id?
I adapted this jsfiddle to exemplify what I'm talking about: http://jsfiddle.net/VvrAs/80/
var idheight = $('textarea').offsetHeight;
var classheight1 = $$('.field').offsetHeight;
var classheight2 = $$('.field2').offsetHeight;
where field and field2 are div classes, and textarea is a div id
I want the undefined values to give the height of the div based on class.
Thanks.