Skip to content
Related Articles

Related Articles

jQuery | :lang() Selector

View Discussion
Improve Article
Save Article
  • Last Updated : 15 Apr, 2019
View Discussion
Improve Article
Save Article

The :lang Selector is used to select all the elements which have the lang attribute with the specified value.
This attribute contains single value language_code which is used to specify the language of content. Some examples of languages are ” en” for English, “es” for Spanish etc. It takes a whole word as value such as lang=” en” or followed by a hyphen(-) like lang=” en-us”.




<!DOCTYPE html>
    <script src=
        $(document).ready(function() {
                "background-color", "coral");
        <h1 style="color:green;">
        <h2>jQuery :lang Selector
        <p lang="en">
            A computer science portal for geeks.</p>


Supported Browsers: The browser supported by jQuery :lang Selector are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!