Site icon Sibeesh Passion

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.

Exit mobile version