This course is out of date and does not reflect our standards or industry best practices. We now recommend you take the Complete Intro to Web Development, v2 course.

Check out a free preview of the full jQuery Plugins and jQuery UI course:
The "Autocomplete Widget" Lesson is part of the full, jQuery Plugins and jQuery UI course featured in this preview video. Here's what you'd learn in this lesson:

“Autocomplete” is an auto-correct widget to assist active typing by the user. It’s fed content using the “source” option to accept an ‘array’ for local data, a ‘string’ for server-specific data or a ‘function’ for dynamic data. Build-in a delay for the user to finish typing – increasing it from the default of 300ms for more time or decreasing it for a quicker response. “Autocomplete” has events for every interaction - typing causes a search to start, the mouse or keyboard interaction selecting an item. It’s important to understand that the suggested data can consist of more than just the display value: ie: storing a database ID in a hidden field. For “Autocomplete” the widget method gives you access to the suggestions menu for added functionality.

Get Unlimited Access Now