Module 15 · Forms, Storage and Small Apps
Every Form, Storage and Date Tool, One by One
Free with an accountReading
Tanvir is building an admission form for a school in Sylhet. Before he writes the whole thing, he wants to know his tools one at a time. What does a radio button give back? Who checks a roll number, the browser or his code? Where does the form's data go, and how long does it stay? How does a date become words a parent can read?
Checking what this lesson needs for you…
What is inside Every Form, Storage and Date Tool, One by One
- Text fields and value
- Checkboxes, radio buttons and checked
- select and its options
- valueAsNumber and the empty field
- The submit event in full
- The input and change events
- Validation by hand
- The browser's own checks: required, pattern, min and max
- checkValidity, validity and setCustomValidity
- FormData
- URLSearchParams: what a sent form looks like
- localStorage, call by call
- sessionStorage
- JSON in and out of storage
- How much fits: the storage limit
- Cookies, named and not used
- IndexedDB, named
- Date: one moment in time
- Intl.DateTimeFormat: printing a date for people
- Which tool for which job