The appendTo method in jQuery
There are also alternative forms of methods for inserting elements. For example, instead of append you can use appendTo.
The difference is in the method of application: if append takes the text to be inserted as a parameter, then appendTo does the opposite - it takes the selector of elements for which append should be applied as a parameter.
The following entries are equivalent:
$('.www').append('<b>!!!</b>')
$('<b>!!!</b>').appendTo('.www')