title: JQuery to check for duplicate ids in a DOM
body: <p>I'm writing applications with ASP.NET MVC. In contrast to traditional ASP.NET you're a lot more responsible for creating all the ids in your generated page. ASP.NET would give you nasty, but unique ids.</p>
  
  <p>I'd like to add a quick little jQuery script to check my document for duplicate ids. They may be ids for DIVS, images, checkboxes, buttons etc.</p>
  
  <pre><code>&lt;div id="pnlMain"&gt; My main panel &lt;/div&gt;
  &lt;div id="pnlMain"&gt; Oops we accidentally used the same ID &lt;/div&gt; 
  </code></pre>
  
  <p>I'm looking for a set and forget type utility that'll just warn me when I do something careless.</p>
  
  <p>Yes i'd be using this only during testing, and alternatives (such as firebug plugins) are welcome too. </p>