sam
sam

Reputation: 35

Add href to txthtml column

Can any one help me how can I solove this

txtHTML = txtHTML + "<td>";
txtHTML = txtHTML + <a href="http://www.w3schools.com">Action</a>+ "</a>";
txtHTML = txtHTML + "</td>";

Upvotes: 1

Views: 35

Answers (1)

gsthina
gsthina

Reputation: 1100

It is just the matter of the usage of " and ' in your code as a string

txtHTML = txtHTML + "<td>";
txtHTML = txtHTML + "<a href='http://www.w3schools.com'>Action</a>";
txtHTML = txtHTML + "</td>";

This above code will help you!

Upvotes: 1

Related Questions