# Beginning JavaScript with DOM Scripting and AJAX

## Chapter 9: Data Validation Techniques

- ### Protecting Web Pages with JavaScript

  - examplePassword.html
  - boo.html
  - creditCardNumbers.html

- ### Testing if a string is a valid number using string methods

  - exampleCheckNumberString.html

- ### Testing if a string is a valid email using string methods

  - exampleCheckEmailString.html

- ### Testing if a string is a valid number using calculation methods

  - exampleCheckNumberMath.html

- ### Testing if a string is a valid date using calculation methods

  - exampleCheckDateMath.html

- ### Testing if a string is a valid date using the Date object

  - exampleCheckDateObj.html

- ### Reversing the order of names with Regular expressions

  - exampleNameOrder.html

- ### Showing the URL of a link behind it via Regular Expressions

  - exampleShowURL.html

- ### Retrieving mandatory fields from a hidden field

  - exampleHiddenFieldForm.html
  - hiddenFieldForm.js

- ### Retrieving mandatory fields from HTML indicators

  - exampleAsteriskForm.html
  - asteriskForm.js

- ### Retrieving mandatory fields by class name

  - exampleClassesForm.html
  - classesForm.js

- ### Sharing validation rules client and server side

  - validationRules.php
  - validationRules.php?json=1

- ### Showing a list of error fields above the submit button

  - exampleTopList.html
  - topList.js

- ### Hiding the main form on validation

  - exampleHideForm.html
  - hideForm.js

- ### Showing error messages at each erroneous form field

  - exampleErrorFields.html
  - errorFields.js

- ### Showing error messages instantly at each erroneous form field

  - exampleDynamicFields.html
  - dynamicFields.js

- ### Suggesting the user possible solutions dynamically

  - exampleContactSuggest.html
  - contactSuggest.js
  - contacts.xml

- ### Helper functions

  - DOMhelp.js