I have a array of contacts, with array websites (object) I would like to display clickable URL format using Jquery.
for ( var i = 0; i < contacts[contactIndex].webAddresses.length; i++) {
var contactFieldWebsites = $(document.createElement('span')).attr({
class : 'contactFieldWebsites'
}).html(newOrUpdatedOrNone(contacts[contactIndex].webAddresses[i])+
('href' contacts[contactIndex].webAddresses[i].url) + ' ('
+ contacts[contactIndex].webAddresses[i].kind + ')'+'<br/>');
contactDiv.append(contactFieldWebsites);
}
Here I just load url whereas I would like to be able to to click on url and redirect me on selected website thx