Posted By

krunkosaurus on 05/04/09


Tagged

DOM jquery firebug


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

benrudolph


jQuery bookmarklet: find duplicate ID's on the page


 / Published in: JavaScript
 

Find duplicate IDs (drag me to your tookbar).

Requires Firebug and jQuery on the page.

  1. 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}}});})();

Report this snippet  

You need to login to post a comment.