Client side validation is so important
by preventing the user from submitting wrong data into the server, it would be better for the server not receiving invalid data and it’s better for the user not to wait until the page reloads tells him that the data is incorrect.

some examples we may check for

  • Required
  • Length
  • Minimum/Maximum (numerical input)
  • Pattern (E-mail)

(more…)