<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery UI 測試</title> <script src="jquery.min.js"></script> <script src="jquery-ui.min.js"></script> <link id="theme" href="themes/hot-sneaks/jquery-ui.min.css" rel="stylesheet"> <style> body {font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;} </style> </head> <body> 股名或股號 : <input id="auto1" type="text" /> <script language="JavaScript"> $(document).ready(function(){ var url="./get_stocks_list.php"; $("#auto1").autocomplete({source: url}); }); </script> </body> </html>