<html>
<head>
<link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<script type="text/javascript">
var data = [
"かぼちゃ",
"とまと",
"とうがらし",
"キュウリ",
"キャベツ",
"キウイ"
];
$(document).ready(function(){
$('#myText').autocomplete(data);
});
</script>
<style type="text/css">
#container{
margin: 0 0 0 20px;
}
h3 {
display:inline;
}
.small {
font-size:10px;
color:#a25768;
}
</style>
</head>
<body>
<div id="container">
<h3>キーワード</h3><span class="small">※「と」、「キ」を入力すると候補がでます</span><br />
<input id="myText" type="text" maxlength="60" />
<input id="myButton" type="submit" value="送信" />
</div>
</body>
</html>