I have the following function:
function LoadColWidth(thewidtharray) {
for (i = 0; i < 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);
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?
Thanks.