Search for prototypes by attribute values

I would like to have jquery $("element[attribute='value']");

or equivalence $("element").find("[attribute='value']");

, but in Prototype.
It looks for an element that has a specific attribute value.
This should be pretty easy, but I don't know much of a prototype and I don't find answers anywhere.
Thanks for your reply.

+3


source to share


1 answer


Use $$

in prototype



$$("element[attribute='value']")

      

+3


source







All Articles