Creating link from TD contents
Hi, I am trying to create hyperlinks based on contents of a table. I successfully manage to identify the right columns; but I don't manage to create a hyperlink that includes the columns value.
Imagine the column contains in the first row the text ABC=1, in the next row it might contain the text ABC=21.
Now I want to create a hyperlink www.somewebsite.com?ABC=1 and for the next row www.somewebsite.com?ABC=21
So far I have : $("TD:contains('ABC=1').ms-vb2").addClass('ab_attach') to identify the right columns
now to add the links I have tried following:
$('.ab_attach').wrapInner('<a href="www.somewebsite.com?'+$(this).text()+'"> </a>');
this doesn't work however. Could somebody please suggest me a way to get this done? Thx !!