Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = document.createElementNS('http://www.w3.org/2000/svg', 'a');
- $( "g[id$='-hover-text']" ).wrap(function () {
- var ohnehovertext=$(this).attr("id").split("-hover-text");
- a.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', ohnehovertext[0]);
- return a;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement