JavaScript and Forms
Form validation is one of the most common uses for JavaScript.
- server is easier to write
- takes less time to detect mistakes
- network bandwidth is conserved
- server runs faster
Study this sample form and discuss
what types of error checking you might want to do. Write some
error checking functions for some of the input values.
how to check credit
card numbers
functions