You can use append
(to add at last position of parent) or prepend
(to add at fist position of parent):
$('#parent').append('hello
');
// or
$('hello
').appendTo('#parent');
Alternatively, you can use the .html()
or .add()
as mentioned in a different answer.