Documentation

Plugins/Autocomplete/setOptions

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Plugins/Autocomplete

setOptions( options )

Updates the options for the current autocomplete field.
This allows you to change things like the URL, max items to display, etc. If you're changing the URL, be sure to call the flushCache() method.
Arguments:
optionsOptions
The options to set.


Examples:

Changes the maximum number of items to display to 15.

$('input#suggest').setOptions({
		 max: 15
		});
		

NameType