asp.net mvc - typeahead.js to select multiple values in same text element -


Here's a way to get the referred solution:

To work with typeahead.js Where do updates, mater etc. functions are not available?

You can read:

TypeHead: selected - triggered When a suggestion has been selected from the dropdown menu. The event handler will be implemented with 3 arguments: suggestion of jQuery event object, suggestion object, and dataset.

Demo:

 Type the head ({sign: true, highlight: true, minnumber: 1}, {name: 'state', display of: 'value' , Source: SubstitutingMotor (State)}) .on ('Typeahhead: Selected', Function (Events, Suggestions) {$ myTextarea.append (suggestions.value, ''); $ ('Typeahead'). Val (' ');});  

Note that you can also use (can also be integrated with it)

Both typehead plug-ins also work together, see What does it look like to provide similar functionality?


Comments