jQueryThis code is part of the the jQuery Base module.
Returns the number of matched elements.
Example:
alert($("p").size());
Returns an array of all elements matched.
Example:
alert($("p").get());
If N is provided, returns the Nth element matched.
Example:
alert($("p").get(0));
Executes this function against every element matched. The scope of the function is within the element itself, to make coding simpler. The function is also passed a single parameter containing the index of the element within the matched element set.
Example:
$("p").each(function(i){
this.innerHTML = this + " is the Element, " +
i + " is the Position";
});