jQuery :lang()Selector

jQuery 选择器jQuery Selectors

Examples

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

$("p:lang(it)")

Try it »

Definition and Usage

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

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


Syntax

$(":lang(language)")


jQuery 选择器jQuery Selectors

Other Extensions