Checking if an input is empty with JavaScript

added by JavaScript Kicks
12/31/2018 1:53:16 PM

276 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