Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

jQuery :lang() Selector

❮ jQuery Selectors


Select all <p> elements with a lang attribute value that starts with "it":

Try it Yourself »

Definition and Usage

The :lang() selector selects all elements with the language attribute starting with a specified value.

Note: The value has to be a whole word, either alone, like lang="en", or followed by a hyphen( - ), like lang="en-us".



❮ jQuery Selectors