Why use JavaScript Form Field Validation?
You can be sure that any user that completes a form will make some data entry mistake, mistakes you want to catch before submitting the data to the database server or other mechanism. The validation of the data is up to the web programmer. Sometimes you need to make sure that there is a value in a required form field, a valid numerical range, valid characters or a valid format etc. JavaScript Form Field Validation is used to enhance the user experience by not having the web form submit to the server before validating the user input, this reduces the users’ waiting time and also reduces load on the server. It should be noted that JavaScript is not to be relied on solely for input validation as the user can turn JavaScript of and bypass the checks, JavaScript is to enhance user experience and reduce server load only.