getNthFieldName() query
Hi there,
Please can someone help.
I'm trying to write a script to change the properties of a group of checkboxes on a page.
Besides checkboxes there are text fields too.
The checkboxes aren't necessarily named the same however, they're close to each other and they sit on the same vertical line from the bottom of the page.
I'm trying to loop through each field item using getNthFieldName() and from there I can get the position of each checkbox.
Only thing is even though the checkboxes are close to each other, as you read from left to right on the page, looping through the fields produces a different order?
I've tried changing the tab order to 'by row' but this has no effect on order of the list when looping though the fields and using getNthFieldName().
Does the reading order, or tab order, have no bearing on the way the fields are returned using the method below?
for (var i = 0; i < this.numFields; i++) {
var fname = this.getNthFieldName(i);
}
Thanks in advance.
