⊗jqDmAtM 56 of 113 menu

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')
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline