How can one put together multiple arrays into one string?

Posted by Noor on Stack Overflow See other posts from Stack Overflow or by Noor
Published on 2010-04-21T20:19:52Z Indexed on 2010/04/21 20:23 UTC
Read the original article Hit count: 274

Filed under:
|

I'm having a hard time describing what I'm looking for.

If we pretend that we're pulling an array (I've used the .split to get user input data) where each line represents a link.

How can I then add an anchor tagg to that link that I'm pulling?

I need to be able to put

< a href=" + thearray + ">anything< /a>.

The reason for this is that I'm dynamically creating a list.

I think that if I create two variables, one with this part

< a href="

one with the closing and then call some sort of function that puts those two and the pulled array in between them until the list is complete.

Does this make any sense?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about arrays