Here you can find the source of find(id)
NodeList.prototype.find = HTMLCollection.prototype.find = function(id) { for(var i = this.length - 1; i >= 0; i--) { if(this[i] && this[i].id === id) { return this[i]; }//from w w w .j a v a 2 s . co m } };