Chapter 5 Enhancing

Old-school Spider-Man fans will be able to tell you that with great power comes great responsibility.[7] This is especially true when it comes to enhancing an interface with the powerful tools of JavaScript.

JavaScript enables us to create beautiful visual effects, provide workarounds for older browsers’ foibles, validate our users’ input, and even submit the form without a new pageload—all wonderful additions to a truly fancy form. However, careless or inconsiderate use of JavaScript can actually make your form harder to use, or even completely unusable in some situations.

There are many examples of poorly implemented forms littered about the Web that require the use of JavaScript to conduct the simplest of tasks. ...

Get Fancy Form 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.