|
This is an alternative to getElementByID.. The dollar function is a simple way to grab an element quickly. It not only takes in strings, it takes objects too. Instead of: document.getElementById('a'); use: $('a'); If you want a whole collection of elements, you can simply do this: $('a','b',obj,obj2,'c','d'); Also see conventional code for getElementByID within. | ||||||
|