diff --git a/demos/autocomplete/custom-data.html b/demos/autocomplete/custom-data.html index 57598fa8c..139b41d99 100644 --- a/demos/autocomplete/custom-data.html +++ b/demos/autocomplete/custom-data.html @@ -64,7 +64,13 @@ return false; } - }); + }) + .data( "autocomplete" )._renderItem = function( ul, item ) { + return $( "
" ) + .data( "item.autocomplete", item ) + .append( "" + item.label + "+The autocomplete field uses a custom source option which will match results that have accented characters even when the text field doesn't contain accented characters. However if the you type in accented characters in the text field it is smart enough not to show results that aren't accented. +
++Try typing "Jo" to see "John" and "Jörn", then type "Jö" to see only "Jörn". +
++Usage: Enter at least two characters to get bird name suggestions. Select a value to continue adding more names. +
++This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field. +
+diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html new file mode 100644 index 000000000..5e0f4b50b --- /dev/null +++ b/demos/autocomplete/multiple-remote.html @@ -0,0 +1,75 @@ + + +
+ +
+ + + + + + + + + +
+