nazono.suggestion [javascript] nazoking

suggestion

入力補完ウィンドウ

定義クラス

suggestion
入力補完ウィンドウを出す
 (リファレンス)

依存ライブラリ

サポート・ブラウザ

特徴

用例

<script src="xbrowser.js"></script> <script src="suggestion.js"></script> <script> var names = ['taro','jiro','saburo','shiro','goro','rokurou']; function init(inpute){ if( !inpute.suggestion ){ inpute.suggestion = new suggestion( inpute, function(text){ var matches=new Array; for( var i=0; i<names.length; i++ ) if( names[i] != text && names[i].indexOf( text ) == 0 ) matches.push( names[i] ); inpute.suggestion.setData( matches ); } ); } } document.write( '<style>' + suggestion.defaultstyles() +'</style>' ); </script> <form> <input type="text" id="inpute" value="" onfocus="init(this);"></form>

リファレンス

リファレンス

ダウンロード

suggestion.js

top / nazo.yi.org / nazonoDiary