javascript - Check if an element copy exists in the document -


i parsing document elements(specifically anchor tags) , pushing them array. when new elements added page via ajax run parser again collect elements , push them array again.

problem facing is, want delete elements array when removed page, not have unique ids these elements, mere anchor tags. there unique element id attached jquery object of element? if so, can push copy jquery object array instead of standard js object.

this not "check if element exists on page" question. have copy of element, , want check if original elements still exists on page or not, hope see difference between 2 questions.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -