How to add an event listener to multiple element IDs
<p>Below is my approach to add listener to multiple ids.</p>

<pre><code>function onImageClick(event) {
//i am not getting below console msg
  console.log('Event Registered');
}

var queryResult = document.getElementsByClassName('ui-grid-cell');
Array.from(queryResult).forEach(function(element) {
  document.getElementById(element.id).addEventListener("click",onImageClick);
});
</code></pre>

<p>Above approach is not working for me. what mistake i am doing?</p>