Hey there! I'm new to JavaScript and I've been working on a todo app. Everything seems to be running smoothly except for the filter function, which I just can't seem to get working no matter what I try. I previously had a similar app with materialize that worked perfectly fine.
I've attempted using task.style.display
and task.className
, but unfortunately, it didn't work out as expected.
CHECK OUT THE DEMO HERE: https://codepen.io/salma-py97/pen/mdOdLvo?editors=1010
Here's a glimpse of the HTML included in my project:
<body class="bg-secondary">
<div class="container">
<div class="row">
...
And here's some of the JavaScript code in action:
// Define UI Variables
const form = document.querySelector('#task-form');
const taskInput = document.querySelector('#task-input');
...