Autocomplete after pasting Jquery text

Asked

Viewed 39 times

1

Hello,

I have the following problem with Sharepoint in the following input:

<input id="listNCM" class="ms-long ui-autocomplete-input" autocomplete="off">

This input searches products through numbers, the guy starts typing the number and the autocomplete shows the suggestions, if the guy clicks on the suggestion all right, Sharepoint saves. If the guy glues the full number of the product and does not click on the suggestion it does not save.

Any hint as to how the autocomplete can search alone for the code "pasted"?

  • How does Sharepoint know that a suggestion was clicked? Do you have an example of code?

  • @sam works just like the google search suggestion, it would be like a . push, when you glue the full product number it only shows the product, if it was possible to pull this product to input.

  • but where does the data come from? from a Sharepoint list?

  • @Ricardopunctual yes, there is a list with all products.

  • then you can make the input take a list, need to use the classes javascript service of sharepoint

  • You can click on the suggestion that matches the one pasted: https://jsfiddle.net/Lpd2oxmz/2/

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.