I created a basic search bar using JS and here is how it looks.
So, whenever a keyup
occurs inside the search box, our function searches for the item in our list.
Things you should know
- Basic JS
- onKeyUp
- forEach method
- DOM Manipulation
You can see the live demo here
The Code
Github Repo
Feel free to fork or clone the repo.
Top comments (0)