SyntaxFix
Write A Post
Hire A Developer
Questions
This will work too:
$('<li>').text('hello').appendTo('#mylist');
It feels more like a jquery way with the chained function calls.