I have a attachments field and put a onclik him to show me the id of the item clicked, but when I click it brings the wrong id, how do I bring the id of correct item in Annex I clicked ????
As you can see in the picture I put an onclick event of the Annex and in that event I am taking the Article ID and in this case would have to appear in the alert ID 32, but he brings the ID 24 which is the id last article on page