How to getelementbyclass?
<p>Below is my Code. I have a search query that returns a list of items in a list with a popup link that should display data relevant to which was clicked. The problem I have is that I am using <code>getElementById</code> and it cannot by reused, so when the popup function is multiplied amongst all items of the list, The popup only displays data relevant to the first item in the list.</p>

<pre><code>function pop() {
    var x = document.getElementById('popup');
    x.style.display = 'block';
}
</code></pre>
