the <div> block 1 </div>
the <div> block 2 </div>
the <div> block 3 </div>
$('div').each(function(i,el){
$(el).text(myArray[i].link);
});
var myArray = [ "url_1", "url_2", "url_3" ];
$('div').each(function(i) {
$(this).wrap('<a href="' + myArray[i] + '"></a>');
});
Find more questions by tags jQueryJavaScript