<!DOCTYPE html> <html> <head> <title>Try jQuery Online</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.9.1.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css"> <script> $(document).ready(function() { var arTags = ["apple", "orange"]; $( "#tags" ).autocomplete({ source: arTags}); }); </script> <style> .selected { color:red; } .highlight { background:yellow; } </style> </head> <body> <input id="tags" type="text"/> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more