var idList = {};
var nodes = document.getElementsByClassName('');
for (var i in nodes) {
if (!isNaN(i) && nodes[i].id) {
idList[nodes[i].id] = idList[nodes[i].id]? idList[nodes[i].id]+1:1;
}
}
for (var id in idList) {
if (idList[id] > 1) console.log("Duplicate id: #" + id);
}
Friday, April 24, 2015
Finding duplicate ids in html nodes
Subscribe to:
Post Comments (Atom)
Going one step further with Kotlin & gRPC
Recently, I tried using Quarkus with Kotlin for grpc. I have worked with grpc for communication between microservices in Java & Golang. ...
-
http://www.palindromelist.net/ https://nowthatsnifty.blogspot.com/2009/10/giant-list-of-palindromes.html http://www.derf.net/palin...
-
Background: http://blog.virtuoso.com/tips-and-trends/10-powerful-reasons-why-people-love-to-travel/ https://sensophy.com/dream-trip-apr...
No comments:
Post a Comment