Arrays

Hi,

I’m making a form in html and i need to have a few select menus/drop down menus, and i was wondering (: if rather than putting in heaps of <options> etc could i use javascript arrays to do this???

maybe make one array for days for example and refer to it multiple times

Any ideas? i need to make several for dates of the month , months and years.:goof:

You could do this, but you’d be much better off doing this looping on the server-side.

That way the data data is available to everyone, not just the people who haven’t disabled javascript for various reasons including:

[list][]personal choice
[
]business demands
[]security reasons
[
]bloody mindedness[/list]