All Projects → 1000ch → input-suggest

1000ch / input-suggest

Licence: other
Show suggestions when you input.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

input-suggest

NPM version Dependency Status devDependency Status

Show suggestions when you input.

Install

Using npm:

$ npm install input-suggest

Using bower:

$ bower install input-suggest

Usage

<textarea></textarea>
<script>
  var is = new InputSuggest('textarea');
  is.setSuggestions(['Apple', 'Apple Watch', 'Mac', 'iPad', 'iPhone', 'iPod', 'iPod Touch']);
</script>

Customize popup

You can style popup with following HTML structure.

<ul class="suggestion is-shown">
  <li class="suggestion__item is-selected">Item1 is selected</li>
  <li class="suggestion__item">Item2</li>
  <li class="suggestion__item">Item3</li>
</ul>

License

MIT: http://1000ch.mit-license.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].