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. ...
-
As you might have guessed, I got very busy between March 2021 & March 2022. In fact I have been very busy at work & play between Ma...
-
The JDBC type BIGINT represents a 64-bit signed integer value between -9223372036854775808 and 9223372036854775807. The corresponding SQ...
No comments:
Post a Comment