I use innerText to add text to my object. Is there an easy way to add a hyperlink to the text? Trend also has a link attribute.
this.node.innerText = trend.get('value');
You need to add a DOM element using jQuery wrap ():
$(this).wrap('<a href="..." />') ;
$(this).wrap('<a href="..." />')
Use **WRAP** Feature
**WRAP**
$(someSelector).wrap(function() { var link = $('<a/>'); link.attr('href', 'somewhere_far_far_away'); link.text($(this).text()); return link; });
Source: https://habr.com/ru/post/951325/More articles:String Escape for Lua string.format - stringwhy does visual studio remove my classes when I update the entity framework model - c #Is there a good reason why we should not always use the Google API SDK? - androidEntityFramework classes updated after upgrade? - c #How to optimize this query in terms of execution speed - mysqlIsnan in std :: namespace? In general, when is std :: necessary, optional or should be avoided? - c ++Client-side event triggering on session loss - javascriptAndroid Parse JSON stuck on task - javaNode.js listens for the change in the session variable and fires the event dispatched by the server - node.jsHow to make a Windows shortcut to open a specific project? - phpstormAll Articles