I have implemented this code, and I like it straight forward, because I plan to add ALOT to Source, but for life I canβt understand how to add the selected one as a link.
EG> Start Entering> AutoFill> Select> Go To This URL
Current code:
<!DOCTYPE html> <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("input#autocomplete").autocomplete({ source: ["NYC", "LA", "Philly", "Chitown", "DC", "SF", "Peru"] }); }); </script> </head> <body style="font-size:62.5%;"> <input id="autocomplete" /> </body> </html>
I found some discussion about this here, but none of the code suggestions worked. How to add the URL associated with the values ββabove; I would like if I could support the same syntax and next to the values ββthat are just added; EG: "peru" www.peru.com
source share