title: Two autocompletes on a page, not adding selected item to correct place
body: <p>I have a page that has used a single autocomplete successfully for a long time. I am trying to add a second autocomplete, but the first and the second autocomplete add the item to the same table; what am I doing wrong? If I switch the order of the two autocompletes it will always add the items selected from either autocompletes into the same table.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript" charset="utf-8"&gt;
    $(document).ready(function() {
  
      $("#assistantInstructorAutoCompleteList").tablesorter({
        widthFixed: true,
        widgets: ["zebra"],
        headers: {
          1: {
            sorter: false
          }
        }
      });
      $("#orgallowedAutoCompleteList").tablesorter({
        widthFixed: true,
        widgets: ["zebra"],
        headers: {
          1: {
            sorter: false
          }
        }
      });
  
      $("#assistantInstructor").autoCompleteList({
        source: "/training/load/course_ins_ALL_lookup.asp",
        appendTo: "#assistantInstructors",
        //      itemName: "assistantInstructors",
        headers: [{
          name: "Assistant or Trainee Instructors",
          size: 90
        }, {
          name: ""
        }, ],
        noResultsMessage: "No Results Found. Users registered for this course cannot be added as instructors."
      });
  
      $("#orgallowed").autoCompleteList({
        source: "/training/load/OrgLookup.asp",
        appendTo: "#allowedOrganizations",
        //         itemName: "allowedOrganizations",
        headers: [{
          name: "Organizations Allowed To Register",
          size: 90
        }, {
          name: ""
        }, ],
        noResultsMessage: "No Results Found. "
      });
  
    });
  &lt;/script&gt;
  
  &lt;div id="orgsallowedSection"&gt;
    &lt;hr class="grid_12" style="width: 950px;" /&gt;
    &lt;h6 class="grid_12"&gt;Organizations Allowed to Register&lt;/h6&gt;
    &lt;div class="grid_12"&gt;
      &lt;input tabindex="15" type="text" id="orgallowed" name="orgallowed" value="" style="width: 400px;" class="" placeholder="Begin typing in organization name to select"&gt;
  
  
      &lt;table id="orgallowedAutoCompleteList" class="tablesorter"&gt;
        &lt;thead&gt;
          &lt;tr&gt;
            &lt;th style="width: 90%"&gt;Organizations Allowed To Register&lt;/th&gt;
            &lt;th style="width: 10%;"&gt;&amp;nbsp;&lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
  
          &lt;% Do While NOT RSAOrgs.EOF  %&gt;
            &lt;tr&gt;
              &lt;td&gt;
                &lt;input id="allowedOrganizations" name="allowedOrganizations" value="&lt;%= RSAOrgs(" org_id ")%&gt;" type="hidden"&gt;
                &lt;%= RSAOrgs("org_nm") %&gt;
              &lt;/td&gt;
              &lt;td style="text-align: center;"&gt;
                &lt;a href="remove_allowed_org.asp?coid=&lt;%=courseOfferingId%&gt;&amp;oid=&lt;%=RSAOrgs(" org_id ")%&gt;&amp;keepThis=true&amp;TB_iframe=true&amp;height=110&amp;width=450" class="thickbox" title="Remove Allowed Organization"&gt;
                  &lt;img src="/images/close.gif"&gt;&lt;/a&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
            &lt;%  RSAOrgs.MoveNext
                  Loop    
              %&gt;
        &lt;/tbody&gt;
      &lt;/table&gt;
  
  
      &lt;div id="instructionSection"&gt;
        &lt;hr class="grid_12" style="width: 950px;" /&gt;
        &lt;div class="grid_2" style="width: 70px;"&gt;
          &lt;h6&gt;Instructors&lt;/h6&gt;
        &lt;/div&gt;
  
        &lt;div class="grid_12" style="margin-bottom: 10px;"&gt;
          &lt;input tabindex="16" type="text" id="assistantInstructor" name="assistantInstructor" value="" style="width: 400px;" class="" placeholder="Begin typing assistant or trainee instructor’s name to select" /&gt;
  
          &lt;table id="assistantInstructorAutoCompleteList" class="tablesorter"&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th style="width: 90%"&gt;Assistant or Trainee Instructors&lt;/th&gt;
                &lt;th style="width: 10%;"&gt;&amp;nbsp;&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;%Do While (Not AIR.EOF) %&gt;
                &lt;tr&gt;
                  &lt;td&gt;
                    &lt;input id="assistantInstructors" name="assistantInstructors" value="&lt;%= AIR(" user_id ")%&gt;" type="hidden"&gt;
                    &lt;% Response.write AIR("last_nm") &amp; ", " &amp; AIR("first_nm") %&gt;
                  &lt;/td&gt;</code></pre>
  </div>
  </div>
  </p>