Изменения

SimpleAutocomplete/en

544 байта добавлено, 17:22, 9 ноября 2011
м
Нет описания правки
; maxHeight: Maximum hint dropdown height in pixels
; emptyText: Text to show when dataLoader returns no options. If emptyText === false, the hint will be hidden instead of showing text.
 
Demo:
 
<html>
Simple: <input type="text" id="z" name="z" value="" /> Multiselect: <input type="text" id="x" name="x" value="" />
<link rel="stylesheet" type="text/css" href="http://svn.yourcmc.ru/viewvc.py/vitaphoto/js/hinter.css?view=co" />
<script language="JavaScript" src="http://svn.yourcmc.ru/viewvc.py/vitaphoto/js/hinter.js?view=co"></script>
<script language="JavaScript">
function cb(h, v) {
h.replaceItems([[ 'a', 'b' ], [ 'c', 'd' ]]);
}
new SimpleAutocomplete('x', cb, ',');
new SimpleAutocomplete('z', cb);
</script>
</html>