deadpool42
Programmer
- May 24, 2004
- 40
I'd like to grab several HTML elements as quickly and easily as possible. document.getElementsByName() would be perfect, but can't be relied upon across browsers. My only idea so far is to use document.getElementsByTagName() and then loop through every tag comparing its id to a regular expression. Please tell me there's a better way.