Please help with the implementation of this functionality. I have a separate module with a separate route.
There will be elements on the page (picture and checkbox under it) as in the screenshot.
And when you click the checkbox, the picture should be added to another block below.
I have a module and a file that shows the elements on the page.
app/code/Test/Module/view/frontend/templates/items.phtml
This is the markup of these elements.
elements set
Please help with the implementation of the functionality that will add the selected item to a separate block