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

· J.D Gauchat
E-bok
22
Sidor
Kvalificerad

Om den här e-boken

 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.

Betygsätt e-boken

Berätta vad du tycker.

Läsinformation

Smartphones och surfplattor
Installera appen Google Play Böcker för Android och iPad/iPhone. Appen synkroniseras automatiskt med ditt konto så att du kan läsa online eller offline var du än befinner dig.
Laptops och stationära datorer
Du kan lyssna på ljudböcker som du har köpt på Google Play via webbläsaren på datorn.
Läsplattor och andra enheter
Om du vill läsa boken på enheter med e-bläck, till exempel Kobo-läsplattor, måste du ladda ned en fil och överföra den till enheten. Följ anvisningarna i hjälpcentret om du vill överföra filerna till en kompatibel läsplatta.