Tying the object to the form
Note: If you didn't download the source code, the code below is the utils.js file.
Validating forms and preventing errors doesn't need to be a difficult task. With a little preparation you can create a reusable object and customize it later to enhance its power.
About the Author
Kris Hadlock is the owner and founder of Studio Sedition, a Web design and development firm. He is the author of Ajax for Web Application Developers and has been a feature writer for numerous Web sites and design magazines. To learn more about Kris, visit his Web site at www.studiosedition.com or his blog at blog.studiosedition.com