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:
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>jQuery UI Autocomplete - Default functionality</title>
- <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
- <link rel="stylesheet" href="/resources/demos/style.css">
- <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <script>
- $( function() {
- var availableTags = [
- "81039",
- "80162",
- "81058",
- "81033",
- "81033",
- "81067",
- "81050",
- "81077",
- "81030",
- "81054",
- "81049",
- "81044",
- "81057",
- "81092",
- "81036",
- "81052",
- "81073",
- "81052",
- "81073",
- "81041",
- "81008",
- "81003",
- "81007",
- "81005",
- "81082",
- "81047"
- ];
- $( "#tags" ).autocomplete({
- source: availableTags
- });
- } );
- </script>
- </head>
- <body>
- <div class="ui-widget">
- <label for="tags">Tags: </label>
- <input id="tags">
- </div>
- </body>
- </html>