⊗jqDmRM 62 of 113 menu

jQuery remove method

There are two methods for removing elements in jQuery: remove and detach.

The remove method removes elements permanently.

Let's say we have the following HTML code:

<p class="www">text</p> <p class="www">text</p> <p class="www">text</p> <p>text</p>

Let's remove p with class www:

$('p').remove('.www');

HTML the code will look like this:

<p>text</p>

Or you can do it like this:

$('p.www').remove();

Remove all h2 with class zzz.

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