event listener for interaction with other object

hi,

say i have three squares (images) and a row of draggable numbers,

i want to update a table for each square after a number was dragged into it,

so if numbers 1,3,4 were dragged into square no.1 it would be updated that the square contains these numbers.

if a nuber was dragged over a square but NOT dropped inside, nothing should happen.

i am guessing i need some event listener but have no idea how to make it

thanks :slight_smile: