Element. Filters.js

add Filters capability to Elements.

License

MIT-style license.

Summary
Element. Filters.jsadd Filters capability to Elements.
ElementsA collection of methods to be used with $$ elements collections.
Properties
filterByTagFilters the collection by a specified tag name.
filterByClassFilters the collection by a specified class name.
filterByIdFilters the collection by a specified ID.
filterByAttributeFilters the collection by a specified attribute.

Elements

A collection of methods to be used with $$ elements collections.

Summary
Properties
filterByTagFilters the collection by a specified tag name.
filterByClassFilters the collection by a specified class name.
filterByIdFilters the collection by a specified ID.
filterByAttributeFilters the collection by a specified attribute.

Properties

filterByTag

Filters the collection by a specified tag name.  Returns a new Elements collection, while the original remains untouched.

filterByClass

Filters the collection by a specified class name.  Returns a new Elements collection, while the original remains untouched.

filterById

Filters the collection by a specified ID.  Returns a new Elements collection, while the original remains untouched.

filterByAttribute

Filters the collection by a specified attribute.  Returns a new Elements collection, while the original remains untouched.

Arguments

namethe attribute name.
operatoroptional, the attribute operator.
valueoptional, the attribute value, only valid if the operator is specified.
A collection of methods to be used with $$ elements collections.
document.getElementsBySelector = document.getElementsByTagName; function $$()
Selects, and extends DOM elements.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi