Here the HTML code:
<textarea>I have played arr[0] and i always try to arr[1] in my arr[2]</textarea>
Here is the array:
var arr = ["football", "drive", "city"]
How to replace arr[0], arr[1] and arr[2] with the correct values from the array arr using jQuery on click to create a new textarea with the new content like that:
<textarea>I have played football and i always try to drive in my city</textarea>
Thanks in advance
$.each(arr,function(i,v) { });