Skip to content

Tag: forms

Native date input ignores CSS

I have a problem with native inputs of type date. My case consists of a native form with multiple native inputs of different types (text, number, date, etc.) The application featuring the form has a sticky header which results in the following behaviour: Whenever the form is submitted and the form validation …

Why isn’t the alerts showing up?

I’m trynna make a simple validation in JS by checking if the name entered has at least 5 characters and the age is over 18. This is what I have so far: I have no idea what am I doing wrong and why is it not working. Answer There are various issues with your code in if (userName.length < 5)