Building & Breaking Web Forms with Quaid-JS
- 49. Clearly Mark Invalid Fields
<p><label for="birth-date">Birth Date</
label> <input type="text" class="date"
name="birth-date" id="birth-date"
required></p>
- 50. Clearly Mark Invalid Fields
<p><label for="birth-date">Birth Date</
label> <input type="text" class="date"
name="birth-date" id="birth-date" required
aria-invalid="true">
<label for="birth_date" class="errata"
role="alert">Please enter a value</label></
p>
- 69. Embrace and Extend
Tel
• phone
<input type="tel" class="phone">
• mobile
<input type="tel" class="mobile">
- 70. Embrace and Extend
Postcode
• data-state-field
<input type="text" class="postcode" data-
state-field="state">
<select id="state" name="state">…</ select>
- 73. Embrace and Extend
Positive Numeric
<input type="text" class="positive_numeric">
Positive Integer
<input type="text" class="positive_integer">
Positive Currency
<input type="text" class="positive_currency">
- 75. Data Attributes
Required if
<input type="checkbox" name="variable-field"
id="variable-field">
…
<input type="text" name="target-field"
id="target-field" data-required-
field="variable-field">
- 80. Custom Validation
Ajax Service
public ValidationResponse IsValidPostcode(string
postcode, string caller)
{
using (var p = new PostalAddressClient())
{
if (!string.IsNullOrEmpty(postcode) && !
p.IsValidPostcode(postcode))
{
…
}
- 87. When the Lights Go Down
JavaScript
HTML5
Server
<label class="server-error">
- 89. On a Web Site Near You
http://physical.jltsport.com.au
- 91. Standing on the Shoulders of Giants
Wufoo
The Current State of HTML5 Forms
http://wufoo.com/html5/
Luke W
Web Form Design: Filling in the Blanks
http://www.lukew.com/resources/web_form_design.asp
Evolving E-commerce Checkout
http://www.lukew.com/ff/entry.asp?1579
- 92. Standing on the Shoulders of Giants
Steve Krug
Don't Make Me Think
http://www.sensible.com/dmmt.html
Punkchip
WAI-ARIA to enhance form validation
http://www.punkchip.com/2010/12/aria-enhance-
form-validation/
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n