Forms API: Learn how to process forms for your website with HTML5 and JavaScript

· J.D Gauchat
Ebook
22
Pages
Eligible

About this ebook

 Learn how to use the Forms API to process forms on your website. After reading this guide, you will know how to send forms from your JavaScript code, how to validate forms, and how to modify a form in real time according to the values inserted by the user.

Table of Contents

FORMS API

Processing Forms

Validation

Custom Errors

The invalid Event

The ValidityState Object

Pseudo-Classes

Valid and Invalid

Optional and Required

In-range and Out-of-range

QUICK REFERENCE

Methods

Events

Validation

This guide assumes that you have a basic knowledge of HTML, CSS and JavaScript, and you know how to create files and upload them to a server. If you don't know how to program in HTML, CSS or JavaScript, you can download our guides Introduction to HTML, Introduction to CSS, and Introduction to JavaScript. For a complete course on web development, read our book HTML5 for Masterminds.

This guide is a collection of excerpts from the book HTML5 for Masterminds. The information included in this guide will help you understand a particular aspect of web development, but it will not teach you everything you need to know to develop a website or a web application. If you need a complete course on web development, read our book HTML5 for Masterminds. For more information, visit our website at www.formasterminds.com.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.