jquery有个autocomplete插件,符合你的要求
具体怎么用可以说说嘛?function InitQueryCode( queryFieldName, hiddenDivName )
{
queryField = document.getElementById( queryFieldName );
queryField.onblur = hideDiv;
queryField.onkeydown = keypressHandler;
queryField.autocomplete = "off";
if( hiddenDivName )
{
divName = hiddenDivName;
}
else
{
divName = "querydiv";
}
ifName = "queryiframe";
setTimeout("mainLoop()",100);
}
这个是JS的代码有这个设置的是"off"