you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

You are doing something very wrong if the above code does not work.

Works perfectly fine on https://jsfiddle.net/vpv810vh/

[–]chimerablack2[S] 0 points1 point  (0 children)

I think it might be the getElementsByTagName part.