Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery :lang() selector

jQuery :lang() selector

jQuery selector jQuery selector

Example

Select all elements whose lang attribute is "it"

element:

$

(

"

p:lang(it)

"

)

Try it »


Definition and Usage

The :lang() selector picks elements with the specified language attribute (lang).

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


Syntax

$(":lang(

language

)")


jQuery selector jQuery selector