Javascript simple syntax problem
<p>I have this line of JS which I have determined is wrong. </p>

<pre><code>classes[i] = document.getElementsByAttribute ("class", show_hide_class_selectors[i]);
</code></pre>

<p>In context</p>

<pre><code>for (var i = 0; i&lt; show_hide_class_selectors.length; i++) {
        classes[i] = document.getElementsByAttribute ("class", show_hide_class_selectors[i]);
        alert ("ok");
    }
</code></pre>

<p>Can someone see where this is wrong?</p>
