2021-05-28

JS code works for a second before "magically" something goes wrong [closed]

The problem is that the code works, but only for a second! then immediately redirects to a page that supposed to be hidden! Since the code is long and in 3 files (index.html, app.js, style.css) I have pushed it to Github. This is a task list called "Forget it not", trying to make it a One-Page app with forms hidden with a class 'hide' defined CSS attribute as "display: none;". As I mentioned, it does work for a second but returns to a section that is supposed to be hidden. it removes the class from that section and puts it back on the "task" list, while the code is written on the contrary.

Github Link:

https://github.com/bdarab/forgetItNot.git



from Recent Questions - Stack Overflow https://ift.tt/3vuqvBi
https://ift.tt/eA8V8J

No comments:

Post a Comment