/ Published in: JavaScript
Find duplicate IDs (drag me to your tookbar).
Requires Firebug and jQuery on the page.
Expand |
Embed | Plain Text
javascript:(function(){var%20ids=[];jQuery('*').each(function(){if(this.id&&this.id!==''){if(ids[this.id]){console.log('duplicate%20id%20found:%20'+this.id,this,ids[this.id])}else{ids[this.id]=this}}});})();
You need to login to post a comment.
