Auto-complete Script Example


/ Published in: JavaScript
Save to your folder(s)

The below script list out the available tags based on the character you enter in the Tag field and the available tags in the array. All the user submitted tags through the Tag form will be stored in an array. Use the below script to enable the auto-complete with your applications. We also used this in and around the call centre system as [predictive dialler software](http://www.touchstarccs.co.uk/ "Inbound, Outbound or Blended Call Centre Software")


Copy this code and paste it in your HTML
  1. <script>
  2. $(function() {
  3. var userTags = [
  4. "touchstarccs.co.uk",
  5. "daviker.co.uk",
  6. "google.co.uk",
  7. "totalworkflow.co.uk",
  8. "business process management",
  9. "bpm software",
  10. "predictive dialler software",
  11. "predictive dialer",
  12.  
  13. ];
  14. $( "#tags" ).autocomplete({
  15. source: userTags
  16. });
  17. });
  18. </script>
  19.  
  20.  
  21.  
  22. <div class="auto-complete">
  23.  
  24. <div class="au-demo">
  25. <label for="tags">Tags: </label>
  26. <input id="tags">
  27. </div>
  28.  
  29. </div>

URL: http://www.touchstarccs.co.uk/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.