Thanks a lot,
jakecigar. Your solution
WOWS me! If possible, I would like to ask you another question deriving from the previous one. This time, I add one more array, so there are four arrays:
arrayOne = [a, b, d, g, k] arrayTwo = [a, b, c, d, e, f, g, h, i, j, k] arrayThree = [0,1,3,6,10]
arrayFour = [ m, n, o, p, q, r, s, t, u, v, w]
❇ ❇ ❇ ❇ ❇ ❇
Now, if I create a div with id in arrayOne, how to use arrayThree elements as index to append arrayFour elements to the div?
For example, if I use "a" in arrayOne as a div id, its index in arrayTwo is "0", and I want to append arrayFour[0] to the div to get a result like this: <div id="a"> m </div>
Is there any way to make it possible?