Easy Tutorial
❮ Event Focus Sel Input Password ❯

jQuery :lang() Selector

jQuery Selectors

Example

Select all <p> elements with the lang attribute set to "it":

$("p:lang(it)")

Definition and Usage

The :lang() selector selects elements with a specified language attribute (lang).

Note: The value must be a whole word, either standalone, such as lang="en", or followed by a hyphen (-), such as lang="en-us".


Syntax


jQuery Selectors

❮ Event Focus Sel Input Password ❯