Delimiter for multiple words on Autocomplete plugin
Hi, I have a question - how to make autosuggest after simple typing word, without delimiter or after whitespace:
- select: function( event, ui ) {
- var terms = split( this.innerHTML );
- // remove the current input
- terms.pop();
- // add the selected item
- terms.push( '@<a href="' + ui.item.link + ui.item.value + '">' + ui.item.label + '</a>');
- // add placeholder to get the comma-and-space at the end
- terms.push( "" );
- this.innerHTML = terms.join( ", " );
- setEndOfContenteditable(this);
- return false;
As you see, here is joining by coma separator