Skip to content

About

This javascript tool creates an input text field and suggestion box for as the user types.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

suggestion

Suggestion is a simple drop down suggestion box which can be scrolled through using the up and down arrow keys or by clicking directly an an element in the list


To install suggestion, include jquery.min.js and suggestiveInput.js in your html file.

It is also worth adding searchIcon.png to your images folder.


To use suggestion, call the method suggestiveInput(inputName, options)

Where input name is the name of the (hidden) input field that will hold the value.

And options is an array, whose key is the value which will populate the hidden field, and whose value is the actuall suggestion item.

Example Call:

<script> options = new Array(); options['value1'] = 'great first value'; options['value2'] = 'great second value'; suggestiveInput("tester", options) </script>

About

This javascript tool creates an input text field and suggestion box for as the user types.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors