Adding Hyperlink to text in JQuery

hyperlink, innertext, jquery

Solution

You need to add a DOM element using jQuery's wrap():

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

Problem

I am using innerText to add text to my object. Is there an easy way to add a hyperlink to the text? 'trend' also has a attribute called 'link'. ``` this.node.innerText = trend.get('value'); ```

Original source