⊗jqBsPCH 23 of 113 menu

Pseudo-class :header in jQuery

The pseudo-class header selects all headings from h1 to h6 at once.

Let's use the following example to get and color all headings with the class www in blue:

$(':header.www').css('color', 'blue');

Get and color all the headings red.

Get and color red all headings with class zzz.

Get and color in red all the headings that immediately follow the titles.

Get and color red all headings with class test that immediately follow headings with class test.

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