Search code examples
javascriptscriptaculousprototypejs

How to gatherElementById starting with a specific word?


Using Prototype and Script.aculo.us, I am trying to make all tags with an ID starting with "idea" Droppable but I can't remember how to get all tags starting with a specific string. Thank you in advance.


Solution

  • Give them a class and do $$('div.idea');