title: Call function within autocomplete jQuery plugin
body: <p>I'm working with the <code>autocomplete</code> jQuery plugin, but I have faced two main problems.</p>
  
  <ol>
  <li>Calling a function within the <code>autocomplete</code> function </li>
  <li>Getting the value of <code>textbox</code> to pass with function</li>
  </ol>
  
  <p><strong>Html</strong> </p>
  
  <pre><code>&lt;input id="txtDemo" type="text" /&gt;
  </code></pre>
  
  <p><strong>Js</strong></p>
  
  <pre><code>$("#txtDemo").autocomplete({
     source: availableTags
  });
  </code></pre>
  
  <p>This is my <strong>function</strong>, Value is value of <code>textbox</code></p>
  
  <pre><code>function Demo (value)
  {
  //code for getting value from code behind in the form of array
  }
  </code></pre>