Events let our applications know when something has happened on our page. …Forms have the ability to trigger special events that can be helpful for processing …and validating. In this movie we're going to take a look …at the elements selection events called, On Focus and On Blur. …So we're going to be working with this form and I've left a little spot here …where I want some feedback to happen when somebody enters one of these fields. …So let me go into the code and show you that, that additional span is right here. …It has an ID of my name hint and class of hint.…
So I'm going to go all the way to the bottom of the page, and right before the …closing body tag, I'm going to add a script. …Now in this script, I want to get to the form element, so I'm going to add …document dot the form. Which is the name of the form, and then …the field that I want to get to, which is my name. …And then add an event handler here. So, I'm going to add the onfocus event, …just the event that happens when somebody enters an element. …
- 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.