How to get current element in jquery autocomplete?
<p>I'm using jQuery autocomplete.
I have 10 text boxes in my page.I binded autocomplete using class name.
In source method I'm calling a service to get the data based on user entered value.I need to pass 2 parameters to service.
1. user entered value.
2. data that is storing in the parents of textbox.</p>

<p>How can I get it?</p>

<pre><code>&lt;div data-id="101"&gt;
    &lt;input class="search_txt" type="text"/&gt;
&lt;/div&gt;
&lt;div data-id="102"&gt;
   &lt;input class="search_txt"  type="text"/&gt;
&lt;/div&gt;
.....
...
...
....
$('.search_txt').autocomplete({
      minLength: 1,
      source: function(request, response) {                                                                              
        //service here 
       //need to get "data-id" of current using text box.
      },
      focus: updateTextBox
      select: updateTextBox
});
</code></pre>

<p>Thanks in advance.</p>