Hi everyone! I'm the author of code.mu :)
I'd love to chat with my non-Russian audience. I'm looking for your feedback on the site and the translation quality. Let's chat:)
⊗jqDmCR 43 of 113 menu

Removing a class in jQuery

There is a similar method for removing a class - removeClass. It removes the class specified in the parameter without affecting the others.

In the following example, the paragraph has an attribute class="www zzz":

<p class="www zzz" id="test">text</p>

Let's remove the last class zzz:

$('#test').removeClass('zzz');

HTML the code will look like this:

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

Remove class www from li.

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