title: jquery autocomplete with input array
body: <p>I am using the following formular:</p>
  
  <pre><code>ROW1: &lt;input class="search" name="pos[]" value=""&gt;&lt;input name="str[]" value=""&gt;
  ROW2: &lt;input class="search" name="pos[]" value=""&gt;&lt;input name="str[]" value=""&gt;
  ROW3: &lt;input class="search" name="pos[]" value=""&gt;&lt;input name="str[]" value=""&gt;
  </code></pre>
  
  <p>For the first input of each row I activated jquery autocomplete:</p>
  
  <pre><code>$(".search").autocomplete(ac_new_invoice);
  var ac_new_invoice = {
      source: "productsearch.php",
      minLength:1,
      select: function(data){
          var str = document.forms[0].elements["str[]"];
          str[1].value = '1.000,00';
      }
  }
  </code></pre>
  
  <p>So it works fine when I type</p>
  
  <pre><code> str[1].value = '1.000,00';
  </code></pre>
  
  <p>But what i want is that if I type in row 1 the input str in row 1 will be changed. But how do I get the row in which the autocomplete is performed from?</p>
  
  <p>Thanks in advance!</p>