Majority of solutions presented here you can call Naive as described here (great article btw): https://medium.com/@chuckdries/traversing-the-dom-with-filter-map-and-arrow-functions-1417d326d2bc, My solution: (live preview on Codepen: https://codepen.io/Nikolaus91/pen/wEGEYe). Convert getted result of InnerHTML text to an element, Javascript: retrieve hidden field value inside element with ID, select elements by class that have a specific child element with javascript, Multiple event handlers only firing on first element, not the target,