Wednesday, May 4, 2011

Write a method to find elements by class name using native DOM methods

This is a common interview question used by google, I wrote up a fiddle to show how this can be done. This is probably more functionality than is expected by the interviewer but is a good reference.



Other Methods:
http://ejohn.org/blog/getelementsbyclassname-speed-comparison/

jsfiddle code here

No comments:

Post a Comment