need help with jquery autocomplete and option appendTo

i am using jquery autocomplete which is working except that the results are being overwritten on the input field. if i try to use appendTo nothing works.

any help will be appreciated.
Who is Participating?
Julian HansenConnect With a Mentor Commented:
I don't understand the problem.

The code appears to work correctly.

Auto complete on first input popuplates second and third?

How do you replicate the problem you are having?
which input field?
if you want to put all selected SKU found to an input, use an array and push every result inside :

   $(function() {  
      var myTagKey = []; 

         source:  testSource,
         select: function(event, ui) {
                 myTagKey = ui.item.tagkey; 
                 $("#foundtagkey").html("SKU: "+myTagKey.join(" ,"));

Open in new window

mmarthAuthor Commented:
the problem was that it was writing the list over the input box. since it worked for you, i looked in the .js files that i was using and changed appendTo from null to body and then set message='' so that no message would be returned
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.