Hide add button after clicking it.
I have a repeat region list that shows a lot of "items" as images. Each item has an "add" button.
When the user presses "add", this ID is written to another table together with the ID of the currently logged in user.
At the same time, I want this "item", which has just been added - to "disappear" from the list, immediately after clicking the add button. The user then gets the feeling that it has been added and that you cannot accidentally add it again. An item can only be added once per user.
Everything works as I intended, but not to get rid of the current item immediately after clicking add button. It works if you refresh the page, then the item that has just been added disappears. But I do not want this. Because then, you end up at the top of the list, and not in the same place as the current "item" was. This is not user friendly - because the user has to scroll down again.
Do you have any suggestions on how to achieve this?