#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0

    Arrays values in table


    Hi to all. I have 4 arrays with names a, b, c, d.
    [1 3 3 4]
    [44 5 1 4]
    [2 5 6 8]
    [2 5 6 7]
    How can i set them in table ?
    and every one is has to be in <tr>
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,151
    Rep Power
    183
    Loop through each of your arrays and corresponding array keys; while, creating new tr/td and setting the innerHTML/textNode of each td, for each array's key (within the loop).

IMN logo majestic logo threadwatch logo seochat tools logo