You could do something like this:

for (var i = 0; i < 5; i++)
{
   $('#mySelect' + i)[0].selectedIndex = i;
}

On Apr 21, 5:21 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote:
> I can't quite get my head around this problem and would really
> appreciate some advice:
>
> I've got five select boxes, all with the same five options. I'd like
> to loop through each select and set it's value to each one of the
> options. I.e. the first select is pre-filled with option one, the
> second select is pre-filled with option two, etc.
>
> - whiteinge

Reply via email to