Setting the width of columns with an array as parameter
<p>I have the following function:</p>

<pre><code>function LoadColWidth(thewidtharray) {

    for (i = 0; i &lt; thewidtharray.length; i++) 
    {
        $('#MyGrid .tr:first').eq(i).width(thewidtharray[i]);
    }
};

var NarrowWidth = new Array(70, 72, 97, 72, 97, 72, 96, 76, 76, 76, 76, 75);
</code></pre>

<p>I'm calling LoadColWidth with different arrays as the parameter and the goal is to resize the width of columns. I'm struggling with the jquery call: it's supposed to loop through each columns by index but it's not working. Any suggestions?</p>

<p>Thanks.</p>
