I need to capture click on elements with ids stored in array ids.
E.g:
ids = ['item1','item3','item4']
<a href='' id='item1'></a>
<a href='' id='item3'></a>
<a href='' id='item4'></a>
When clicking on 3 it should return 3 and prevent redirect.