10. Working with Forms

Forms are integral to the usefulness of the Web as they provide the primary interface for user interaction. In this book, forms have been used heavily ever since Chapter 2, JavaScript in Action, but this chapter is going to complete the coverage of the subject. To start, there are some more general form issues, but the meat of the chapter goes through aspects of using the various form element types. That section of the chapter will be more like a recipe book, with explicit code for performing specific tasks. The chapter concludes with a discussion of regular expressions. Although they aren’t exclusive to forms, regular expressions are often used to validate textual form data, and you’ll see exactly how.

General Form Considerations ...

Get Modern JavaScript: Develop and Design 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.