Tag hinting or label hinting is a very useful thing for forums and blogs, where it is used to tag post or as generally termed as auto suggestion.
and a div to show the hints.
<div id="hintwords" style="display: none;"></div>
The function which is to be called is:
- Other style values can be added to above div.
- id of the div has to be hintwords.
- arr has to be declared and should be after file inclusion.
- hint take only the specified arguments.
- hint can work on keypress, keyup and keydown events.
There is a example file on this in repository on git. Pretty soon i’ll be sharing a library which interacts with database and can be helpful in searches.