Unfortunately, this does not help. I have changed to button, but then nothing happens at all.
I'ts true, the ajax doesn't work, but it seems it depends on something else. Because I have made the same page locally, and there it works. The only difference is the database name, the name of the columns and the tables. And the fact that I work with MAMP as a local server, php version 7.4.1. The remote server has php version 7.4 - so that shouldn't be any difference. And its on Swedish.