Ramkrishn Rai
@Ram0O7All solutions
- Submitted 16 days ago
contact-form-main
- HTML
- CSS
- JS
I have a question about validation logic I'd like some feedback on. how should I validate the html forms (for frontend only) correctly. I have few ideas in my mind, but I can't get myself to find the best approach.
- like the simplest I can do is put a required flag on every input element though I'm not sure how well it validates the forms, especially for email inputs.
- other one is manually using JavaScript to handle each case independently. Although, it works well but becomes cumbersome at times.
- Or should I take help from third party libraries for validation logic.
Any feedback is appreciated, thanks!