getElementsByClassName and AJAX
问题 Am I missing something with getElementsByClassName() and querySelectorAll()? In Firefox 9 and Chrome 17 and probably all browsers, it seems that both of these functions return an empty array when executed on an AJAX response. See the following link for an example. http://jsfiddle.net/r8ryr/5/ I can call document.getElementsByClassName('findme') or anyElement.getElementsByClassName('findme') for any element within the DOM of the current page, but for some reason it doesn't seem to work on the