getElementsByClassName not working [duplicate]
There are several issues: Class names (and IDs) are not allowed to start with a digit. You have to pass a class to getElementsByClassName(). You have to iterate of the result set. Example (untested): Note that getElementsByClassName() is not available up to and including IE8. Update: Alternatively you can give the table an ID and … Read more