Search code examples
javascriptprototypejsjavascript-framework

Prototype search by attributes values


I would like to have the equivalence of the jquery $("element[attribute='value']"); or $("element").find("[attribute='value']"); but in Prototype.
This searches an element that has a specific attribute value.
It must be quite easy but I don't know much of Prototype and I don't find any answers anywhere.
Thank you for your reply.


Solution

  • Use $$ in Prototype

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