summaryrefslogtreecommitdiffstats
path: generated by cgit v1.2.3 (git 2.39.1) at 2025-08-12 00:42:47 +0000
function() { // prevent value inserted on focus return false; }, select: function( event, ui ) { var terms = split( this.value ); // remove the current input terms.pop(); // add the selected item terms.push( ui.item.value ); // add placeholder to get the comma-and-space at the end terms.push( "" ); this.value = terms.join( ", " ); return false; } }); </script> </head> <body> <div class="ui-widget"> <label for="birds">Birds: </label> <input id="birds" size="50"> </div> <div class="demo-description"> <p>Usage: Enter at least two characters to get bird name suggestions. Select a value to continue adding more names.</p> <p>This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.</p> </div> </body> </html>