I have a number of elements on my page that have a lang attribute. How do I select only the elements with a lang attribute?
i.e.
<div lang="english">Test</div>
<span lang="english">is cool</span>
<span lang="anotherlanguage">is also good</span>
You need to use attribute selector.
Live Demo
You can iterate through each item use each()