Problem with Auto Complete "Search" Event
Hi Experts,
I am using autocomplete plugin & it is fine. Now I have a bit different scenario. My auto complete will work only for few selected words/phrases. So, I have decided to check the work/phrase entered by user.
I have used Search event where I check the word. Now my question comes into light. Below is the Search event syntax:
search( event, ui ){}
My question is:
1. Here what is "event" & 'ui' ? I read the docs & I know that event is of event type & ui is of object type. But here what they contain? Can we use these "event" & "ui" ? What is the value of "event" & "ui" here ?
2. Is there any way to access that word/phrase, for which we are invoking search event, inside this search event. E.g.: when we specify "source" & use callback function, we have request & response arguments. "request" contains the word/phrase for which we have to invoke autocomplete fuctionality & in response, we will have to return output data. OR I will have to get the text using normal process means by fetching the value of input text box control.