Some numeric fields have attributes that let you control the number of characters …as well as the minimum and maximum value. These will even work with dates. …So, I have a simple form here, where I'm asking the user a name, age, and when …they would like to make a reservation. You can have the browser prevent the user …from typing fields longer than a certain length. …With a maxlength attribute that works for fields like text, email, search, …password, telephone or url. We can for example make sure that their …name is no longer than ten letters, perhaps our database limits the length of …that field. We'll see how that works, we'll go into …our code for this page and modify the name input field, so that it has a …maxlength we'll make it ten characters. So I'll save this, I'll go back to my …form, Refresh, and when I try to type in something longer than ten characters, the …browser will stop me at ten characters. Some other attributes that you can use …are min and max. They let you create constraints to …
- Understanding forms
- Adding required fields and placeholders
- Accepting multiple entries
- Limiting uploads
- Handling focus changes
- Validating with regular expressions
- Working with older browsers
- Building jQuery validation
- Using server-side validation
- Sanitizing form input
- Uploading files
- Sending form data to a database
Skill Level Intermediate
Managing and Analyzing Data in Excel 2010with Dennis Taylor1h 32m Appropriate for all
1. Getting Started
2. Validating with HTML5
4. jQuery Form Validation
Understanding jQuery3m 47s
5. Working with PHP
6. Processing Form Data
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.