Posted By

krunkosaurus on 05/04/09


DOM jquery firebug

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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(!==''){if(ids[]){console.log('duplicate%20id%20found:%20',this,ids[])}else{ids[]=this}}});})();

Report this snippet  

You need to login to post a comment.