Checking if an input is empty with JavaScript

added by JavaScript Kicks
12/28/2018 11:20:25 PM

765 Views

Last week, I shared how to check if an input is empty with CSS. Today, let's talk about the same thing, but with JavaScript. It's much simpler. Here's what we're building: If you want to validate the input when a user types into the field, you can use the input event.


0 comments