@Hawkee Thanks, it helped me. I've another issue, that is when I select an option from menu my text area in updated with it, like @Imran Khan and cursor is positioned after one space and then if I start typing the search is still happening and getting the suggestion for the search term "Imran khan [whatever typed by me after selection]".
How can I resolve this? My json is as shown in my last question, there is no 'label' key, instead I've 'caption'
which I'm replacing with 'label' in your code.
@Hawkee This plugin is great, I'm using it for my current project, I've got it working but not able to modify "updateHidden" function to generate the value in following format which depends on certain types(in my case there are two types ie "t":"s" and "t":"u") :