Latest web development tutorials

jQuery: lang () selector

jQuery selector jQuery selector

Examples

Select with the lang attribute value to "it" the beginning of all <p> elements:

$("p:lang(it)")

try it"

Definition and Usage

: Lang () selector to select the element with the specified value at the beginning of the language attribute.

Note: This value must be a whole word, either alone, such as lang = "en", can also be followed by a hyphen (-), such as lang = "en-us".


grammar

$(":lang( language )")


jQuery selector jQuery selector