A
amerar
Hi All,
I'm not good at Javascript, so I am trying to understand this small bit
of code:
var groups=document.$fm.category.options.length;
var group=new Array(groups);
for (i=0; i<groups; i++);
group=new Array();
It looks like line #1 is getting the length of a combo box on the page.
Line #2 then creates an array called 'group' that has max elements from
the value in #1.
What could line #3 & #4 be doing?
The array has already been created with the size........I'm unclear.
Thanks.
I'm not good at Javascript, so I am trying to understand this small bit
of code:
var groups=document.$fm.category.options.length;
var group=new Array(groups);
for (i=0; i<groups; i++);
group=new Array();
It looks like line #1 is getting the length of a combo box on the page.
Line #2 then creates an array called 'group' that has max elements from
the value in #1.
What could line #3 & #4 be doing?
The array has already been created with the size........I'm unclear.
Thanks.