DEV Community

Discussion on: Handling Injection Attacks With JavaScript

Collapse
vicradon profile image
Osinachi Chukwujama

Input fields usually need no custom validation on the client. You can always add the required attribute for native validation

<input type="email" required />
Enter fullscreen mode Exit fullscreen mode