DEV Community

Discussion on: A simple and easy way to validate form fields

 
sirnino profile image
Antonino Sirchia

I think that what you wrote in the article can be done without js, only through simple html. Take a look here: w3schools.com/html/html_form_attri...

Thread Thread
 
savanapoint profile image
SavanaPoint

Antonio, I understand you now. So, my idea in this article was not to bring something complex but if you pay close attention to my code you will realize that you have an idea where you can transform something complex according to your need. Well, it is possible to do form validation with HTML but very limited, the fields validated by HTML I edit them in the browser and change their behavior and this is not a very good web application or advisable. That is why web programming languages ​​have emerged to eliminate the limitations of HTML. I don't know if I made you understand?