JQuery Language Selector

Using the lang attribute to our HTML element, here I am using a div
[js]
<div lang="en">
<div lang="en-us">
[/js]
Using the JQury Selector to select that element
[js]
$("div:lang(en)")
[/js]

This selector will select the div element which has attribute lang as en.

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360