I understand that I can add material to an element using:
$(...).prepend(myText);
However, if myText, say, "<span>"I really want this text to appear, but .prepend()instead add an empty span element. What is the recommended way to solve this problem? Do I really have HTML output from the text manually or is there something more elegant?
Timwi source
share