Javascript - Changing Class Name using an Array
<p>I'm trying to change all fields that have a name 'make' or 'model' that's in an array list. I'm sure I'm not doing something simple to make this work. But this function below does not work. How do I change the class name of multiple fields from an array list?</p>

<pre><code>CSS
hide {
display: none;
}

array = ['make','model'];

function deactivateField( array ) {
    count = array.length;
    for (i = 0; i &lt; count; i++) {
        array[i].className = 'hide' );
    }
}


&lt;td id="make" name="make" class="show"&gt;aaa&lt;/td&gt;
&lt;td id="make" name="make" class="show"&gt;bbb&lt;/td&gt;
&lt;td id="make" name="make" class="show"&gt;ccc&lt;/td&gt;

&lt;td id="model" name="model" class="show"&gt;111&lt;/td&gt;
&lt;td id="model" name="model" class="show"&gt;222&lt;/td&gt;
&lt;td id="model" name="model" class="show"&gt;333&lt;/td&gt;
</code></pre>
