javascript htmlDivElement problem
<p>I have a htmlDivElement (with no id) - and I'm trying to access and change the style of it.. </p>

<p>Problem is everything I try returns 'Undefined' when i try to alert it </p>

<p>Eg: </p>

<pre><code>alert (htmldivelementobject.className)
</code></pre>

<p>I've also tried getAttribute but it returns the same thing... Where am I going wrong?</p>

<p>Full code below:</p>

<pre><code>var i=0;

for (i=0;i&lt;=100;i++)
{
    if (document.getElementById("inst"+i))
    {
        //document.getElementById("inst"+i).style.display = "none";
        var content = getElementsByClassName(document.getElementById("inst"+i),"div","content");
        alert (content)

    }
}
</code></pre>
