DEV Community

bdarab
bdarab

Posted on

JavaScript: The problem is that the code works, but only for a second

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:

Top comments (0)