I have two arrays of strings called old_array and new_array, and I want to concatenate them together like thus:
old_array = "fd.com/product1/,fd.com/product2/,fd.com/product3/"
new_array = "image1.jpg,image2.jpg,image3.jpg"
(code happens in this area)
final_array = "http://www.fd.com/product1/image1.jpg,http://www.fd.com/product2/image2.jpg,http://www.fd.com/product3/image3.jpg"
All I've seen are things which would tack on the second array to the first (i.e. "fd.com/product1/,fd.com/product2/,d.com/product3/,image1.jpg,image2.jpg,image3.jpg") which isn't too helpful...?
Can this sort of thing be done in jQuery?