Help is autocomplete and linking values

Help is autocomplete and linking values

Hey guys I'm using autocomplete to return a set of zipcodes on a saerch. I need the values to be linked to a page for pricing based on the zipcode the input.

Code is below:
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jQuery UI Autocomplete - Default functionality</title>
  7. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  8. <link rel="stylesheet" href="/resources/demos/style.css">
  9. <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  10. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  11. <script>
  12. $( function() {
  13. var availableTags = [
  14. "81039",
  15. "80162",
  16. "81058",
  17. "81033",
  18. "81033",
  19. "81067",
  20. "81050",
  21. "81077",
  22. "81030",
  23. "81054",
  24. "81049",
  25. "81044",
  26. "81057",
  27. "81092",
  28. "81036",
  29. "81052",
  30. "81073",
  31. "81052",
  32. "81073",
  33. "81041",
  34. "81008",
  35. "81003",
  36. "81007",
  37. "81005",
  38. "81082",
  39. "81047"
  40. ];
  41. $( "#tags" ).autocomplete({
  42. source: availableTags
  43. });
  44. } );
  45. </script>
  46. </head>
  47. <body>

  48. <div class="ui-widget">
  49. <label for="tags">Tags: </label>
  50. <input id="tags">
  51. </div>


  52. </body>
  53. </html>