Селектор :lang()


lang selector

Описание: Selects all elements of the specified language.

  • Добавлен в версии: 1.9jQuery( ":lang(language)" )

    language: A language code.

The :lang() selector matches elements that have a language value equal to the supplied language code or that start with the supplied language code immediately followed by "-". For example, the selector $("div:lang(en)")will match <div lang="en"> and <div lang="en-us"> (and any of their descendant <div>s), but not <div lang="fr">

For HTML elements, the language value is determined by the lang attribute and possibly information from meta elements or HTTP headers.

Further discussion of this usage can be found in the W3C CSS specification.