jQuery - Loop through all elements of a specific type on a web page

By [)ia6l0 iii

Use the each method to loop thru the element collection. The following example loops through the img elements.

$('img').each(function()
{
         //Loop thru the img elements on the page
}

Related FAQs

You can use the RemoveClass method to remove the style on an element.
There are couple of ways to check if jQuery is loaded on a page.
You can use Jquery plugin to hightlight text on a web page
jQuery - Loop through all elements of a specific type on a web page  (1443 Views)