CHAPTER 9

image

Data Validation Techniques

In this chapter, you will learn about using JavaScript to validate data entered by the user or coming from other systems. You already heard a lot about this in Chapter 2, which dealt with decisions involving data, and we will use some of that knowledge and extend it here.

Data validation has gone though some changes with the introduction of HTML5. Before, JavaScript was the first line of defense against having bad data possibly sent to the database. Now new features built into the browser help developers by removing a lot of the heavy lifting because the browser does a large part of the validation itself. ...

Get Beginning JavaScript with DOM Scripting and Ajax, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.