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

· J.D Gauchat
E-bog
22
Sider
Kvalificeret

Om denne e-bog

 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.

Bedøm denne e-bog

Fortæl os, hvad du mener.

Oplysninger om læsning

Smartphones og tablets
Installer appen Google Play Bøger til Android og iPad/iPhone. Den synkroniserer automatisk med din konto og giver dig mulighed for at læse online eller offline, uanset hvor du er.
Bærbare og stationære computere
Du kan høre lydbøger, du har købt i Google Play via browseren på din computer.
e-læsere og andre enheder
Hvis du vil læse på e-ink-enheder som f.eks. Kobo-e-læsere, skal du downloade en fil og overføre den til din enhed. Følg den detaljerede vejledning i Hjælp for at overføre filerne til understøttede e-læsere.