Just about all the text fields in an HTML form are input fields. …The exceptions are the text area field, which is really just like a text field, …and also the select field. The select field is quite another beast, …so I wanted to cover how to handle onchange events on select fields. …Select fields have a special and very useful property called the selectedIndex …property, which shows you the option that a user has selected from its list. …So, let's take a look at this form, which we're going to be working on in this movie.…
This form just has a single field, and it's a pop up field with a list of some websites. …If you take a look at the code, you'll see that the value field for each of …those is an actual site. So what I'm going to do is, after the …form field, I'm going to add a script tag. …And on that script tag, I'm going to target the form. …And our field is called reference, so I'll target that. …And I'll add an onchange event handler. That's going to be a function literal, …means just a function with no name. And inside that, I'm going to create a …
- 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 Intermediate
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.