Chapter 2. Form creation: input widgets, data binding, and data validation
Chapter 2 at a glance
Description, methods, and so on |
Page |
|
---|---|---|
New input types[1] | HTML5 <input> element types | |
|
42 | |
|
42 | |
|
46 | |
|
49 | |
New input attributes[1] | HTML5 attributes on <input> elements | |
|
42 | |
|
49 | |
|
43 | |
|
42 | |
|
46 | |
data-* attributes | Storing key/value data in attributes on elements | 46 |
valueAsNumber property | Reading input values in numeric format | 54 |
<output> element | Displaying the output of calculations | 47 |
Preventing validation | Providing means of bypassing client-side validation | |
|
51 | |
|
51 | |
Constraint Validation API | Client-side API for validation | |
|
59 | |
|
59 | |
|
60 | |
CSS3 pseudo-classes | Styling invalid elements with CSS3 | 61 |
Backward compatibility | Feature detection and unsupported browsers | |
|
63 | |
|
64 | |
|
65 |
1 Only the input types and attributes used or discussed in this chapter are listed here. For comprehensive coverage, visit mng.bz/wj56.
Look for this icon throughout the chapter to quickly locate the topics outlined in this table.
This chapter covers