⊗jqBsCCh 12 of 113 menu

jQuery Command Chains

jQuery commands can be written one after another in a chain.

For example, in our HTML code we have elements with the class www:

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

Let's give them the text '!!!' and highlight it in red:

$('.www').html('!!!').css('color', 'red');

The length of the chains is not limited - you can apply as many methods in a row as you need.

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