Skip to content

Instantly share code, notes, and snippets.

@beatak
Created May 31, 2013 23:32
Show Gist options
  • Save beatak/5688639 to your computer and use it in GitHub Desktop.
Save beatak/5688639 to your computer and use it in GitHub Desktop.
// Warning Duplicate IDs
$('[id]').each(function(){
var ids = $('[id="'+this.id+'"]');
if(ids.length>1 && ids[0]==this)
console.warn('Multiple IDs #'+this.id);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment