title: jquery autocomplete using only last word of input string
body: <p>I want to create an input box where user input a string and get help from jquery AUTOCOMPLETE function to complete ONLY the current word and when a user selects something from autocomplete suggested list, only that word is rewritten not the whole sentence(input string).</p>
  
  <p>Example Input String:  "LION IS A WILD ANIMAL"</p>
  
  <p>So when user is writing "LION IS A WILD ANIM", autocomplete should suggest "ANIMAL" and on selecting it "ANIM" is replaced by "ANIMAL" and the input string is "LION IS A WILD ANIMAL"</p>
  
  <p>Is there any provision to supply the "input string" for match instead of using the input value box value as the "input string".  </p>