Reputation: 2679
So I have a textfield with an autocomplete attached to it working fine.
Here's what I want to happen:
Basically, after the user makes their selection I want to present them with boolean operators - "AND"/"OR". The textfield is for a search application. I want to facilitate users searching for multiple topics e.g. "Apples AND Bananas".
Thanks
Upvotes: 0
Views: 328
Reputation: 2664
Use the select event of autocomplete
$( ".selector" ).on( "autocompleteselect", function( event, ui ) {
// Write your code here
// preferably update your source of tags. Like,
// availableTags = [New tag1, New tag2, ...];
} );
Upvotes: 1