getElementsByAttribute | ThinkVitamin.com Demo

This function extends the YAHOO.util.Dom class which will natively use the getElementsBy method. With it you can get any element by an attribute/value pair.