This is the code im using and its working fine:
So heres the thing, what I need to do is take the value in the variable divh and echo it into the page as an inline css height attribute.
So for example:
That is not a (IMHO) good way of doing that. You want to get the element and set the property in JS, not use JS to write out the value.
Give the div an ID, and use
document.getElementById('theID').style.height = divh + "px";
My Regards Mr.Wolfe :thumbsup:
|All times are GMT +1. The time now is 01:51 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.