How to find duplicate data attributes from DOM in jquery
<p>How to find duplicate data attributes from DOM in jquery</p>

<p>My Dom structure as below</p>

<pre><code>&lt;div id="selected-items" style="display: block;"&gt;&lt;div id="selected-items"&gt;&lt;div class="selected-item"&gt;&lt;span class="label label-info invited-user" data-user-id="5048d2e5fbdac48208000042"&gt;
    &lt;span class="invited-user-name"&gt;
        Anandan
    &lt;/span&gt;
    &lt;button class="btn btn-info remove-btn"&gt;x&lt;/button&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="selected-item"&gt;&lt;span class="label label-info invited-user" data-user-id="5048d2e5fbdac48208000034"&gt;
    &lt;span class="invited-user-name"&gt;
        Kumaran
    &lt;/span&gt;
    &lt;button class="btn btn-info remove-btn"&gt;x&lt;/button&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
</code></pre>
