What is a benefit of implementing client-side validation?
Hey there, @sgarai701. Welcome to the forums!
In short, this:
“Client-side validation is an initial check and an important feature of good user experience; by catching invalid data on the client-side, the user can fix it straight away. If it gets to the server and is then rejected, a noticeable delay is caused by a round trip to the server and then back to the client-side to tell the user to fix their data.”
Let’s take Twitter, for example. You can change your handle (@YourUsername). But every handle has to be unique, right? Well, as you type your desired username, you receive immediate feedback to let you know if it’s available or not. You don’t have to click “Submit”, and wait for the round trip to the server.
There’s a whole detailed article available right here: