April 26th, 2013, 10:41 AM
Generating text and dynamically insert it on a webpage
Hi, I have a code, that inserts generated data on a website, one line of the code looks like this:
but if I change it, e.g. making a link from the inserted text:
it doesn't work anymore (shows no data at all).
variable.append("<tr><td><a href=google.com> </a></td></tr>");
How should I go about this?
April 26th, 2013, 09:45 PM
This is how you need to go about doing this and here is the link to the jQuery .append() API:http://api.jquery.com/append/.