If I want to set the text of a to \"Test message here\", do I do:
$(\'\').text(\'Test
Try:
$('').text('Test message here');
You also need to insert the new element somewhere in the page.