I'm trying to add top to class based on div height:
jQuery(document).ready(function($) {
var offsetHeight = $(test).height(); //Successfully Got height
var txt = "Height with padding and border: " + offsetHeight + "px";
document.getElementsByClassName("logo_helper").style.top = txt;
});
And i get such error:
Uncaught TypeError: Cannot set property 'top' of undefined
at HTMLAnchorElement.<anonymous>
I'm not very strong at JS. Can someone help?