How may I check if 2 Dom element are same.
Form example
var element1 = document.getElementById("abc");
var element2 = document.getElementById("abc");
Now how should I chekc that these 2 elements are equal?
Thanks
How may I check if 2 Dom element are same.
Form example
var element1 = document.getElementById("abc");
var element2 = document.getElementById("abc");
Now how should I chekc that these 2 elements are equal?
Thanks
If the Ids are the same, they cannot be different. If the Ids are different they cannot be the same. So if you have both Ids you can just compare the two Ids.