Adding Hyperlink to text in JQuery -


i using innertext add text object. there easy way add hyperlink text? 'trend' has attribute called 'link'.

this.node.innertext = trend.get('value'); 

you need add dom element using jquery's wrap():

$(this).wrap('<a href="..." />');


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -