I have the following, I am creating a link dynamically I am stuck with concatenation of a split.
link = "<li><span id='number'>" + link.split(" ")[0] + ".</span>" // Adding a "peroid" character after the reason number and make it bold
+ "<a href='#" + reasonTitle + "' " // Open link tag off adding href with relevant reference
+ "onclick=\"_gaq.push([\'_trackEvent\', \'" + experimentConversionReference + "\', \'ReasonClicked\', \'" + reasonTitleSpaces + "\'])\;\">" // Adding event tracking for google
+ link.split(/\d/)[1] // Add back on the back end of the split string
+ "</a>" // Close link tag off
+ "</li>";
More specifically line 4
on the above I want to grab and print everything in the array from [1]
and up how can I do this?
What I don't want is to do
link.split(/\d/)[1] + link.split(/\d/)[2] + link.split(/\d/)[3] + link.split(/\d/)[]
and so on.