Retrieve items ID's from repeater.[SOLVED]

Good morning fellow coders, I have a repeater of items, and on this repeater I have a button to activate/deactivate the items that I want. I am creating a array of objects with all the items that are activated. I need to get the ID from those items in the array, then compare them with eq() in a query, so I can input those returned query values as a reference column in another table. Any guesses?

Are you trying to just get the item details when clicked? Or do you need all the items showing in the repeater?

All the items are showing in the repeater, however, I have a switch button to select what items I want to send to my database.

Turns out I was retrieving an mistaken key from the initial database, wich caused to when I compared both arrays to return undefined.