Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

jQuery :lang() Selector

❮ jQuery Selectors

Example

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

$("p:lang(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".


Syntax

$(":lang(language)")

❮ jQuery Selectors