Here's my code:
This works so far. Now what I want to do is to pass the variable "cat" to the "HandleNotifiaction" function. I tried this
Notification()
And changed "Handlenotification" to this:
But it only works for the first "innerHTML". It keeps saying "Please wait, loading...". Though, the data will be submitted correctly. Seems like "cat" gets lost somewhere.
I have 2 spans and want to update the correct one, without creating 2 functions.
Help is appreciated as always.
