Hello I am having some trouble getting some HTML links to add to my HTML page. I have tried searching around but nothing has helped thus far.
My page will initially
As Just code points out, you want to use the html
method, not the text
method. html()
is jQuery's wrapper for innerHTML
, which injects the string as html.
Here is a jsFiddle showing the difference:
http://jsfiddle.net/89nxt/
$("#teamRosterHtml").html("John Frank");
$("#teamRosterText").text("John Frank");