What\'s the best way to get an array of all elements in an html document with a specific CSS class using javascript?
No javascript frameworks like jQuery allowed her
If you want to do something for all the element with same id in a document. Although simple but sometime mind dont give green signals
var x = document.getElementById(elementid); while(x){ document.removechild(x); x = document.getElementById(elementid); }