javascript values to array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?cm9kY2hhcg==?=

    #1

    javascript values to array

    hey all,
    is there an easy way to take the values of 8 textboxes and put it in an
    javascript array? i know there's a straightforward way to do it i was just
    wondering if there are some other interesting ways?

    Straightforward way:
    var mycars = new Array();
    mycars[0] = "car1";
    mycars[1] = "car2";
    mycars[2] = "car3";
    ....

    thanks,
    rodchar
Working...