How can I replicate YUI's getElementsBy using Prototype?

Posted by LogicWolfe on Stack Overflow See other posts from Stack Overflow or by LogicWolfe
Published on 2010-03-22T18:17:30Z Indexed on 2010/03/22 18:21 UTC
Read the original article Hit count: 274

Filed under:
|
|

I'm moving some code from YUI to javascript and some of it is using YUI's YAHOO.util.Dom.getElementsBy(function). I've been reading through the prototype API docs and haven't been able to find something equivalent. It needs to be able to take an arbitrary function not just select off a CSS selector or the like. Can anyone suggest to me the best way to accomplish this in Prototype?

© Stack Overflow or respective owner

Related posts about yui

Related posts about prototype