How can we compare two HTML elements whether they are identical or not ?
I tried this thing but no luck
Hi this is sachin ten
How does this codes?
var d1 = document.createElement("div"); d1.appendChild(divs.get(0)); var d2 = document.createElement("div"); d2.appendChild(divs.get(1)); if (d1.innerHTML == d2.innerHTML) ?