getelementsbyclassname

Modify prototypes of every possible DOM element

Updated title to better reflect what I'm trying to do. In short, there are different constructors for different dom elements, and they don't seem to all share a common prototype. I'm looking for a way to add a function property to every DOM element by modifying these prototypes, but I'm not sure how to find them. For example, I could d...

Iterating through specific radio groups only, within a larger set of radio groups

I have a form with 26 questions, all of which have radio button groups as an answer choice for the user (it calculates the risk factor for a specific invasive plant species on a given property). At the end, the selected value within each radio group is added up. What makes it complicated is that the user has the option of filling in th...

JS: iterating over result of getElementsByClassName using Array.forEach

I want to iterate over some DOM elements, I'm doing this: document.getElementsByClassName( "myclass" ).forEach( function(element, index, array) { //do stuff }); but I get an error: document.getElementsByClassName("myclass").forEach is not a function I am using Firefox 3 so I know that both getElementsByClassName and Array.forEach a...