Such as:
var data = [ajax过来的数据]
The front-end user types characters in the input box and JS/JQ quickly matches the data that matches the prefix.
For example, if you type seg, you will quickly match the corresponding data entry that begins with the seg .
*数据是json格式的php数组*类似于SegementFault站内邀请别人答题时候输入框的效果
Reply content:
Such as:
var data = [ajax过来的数据]
The front-end user types characters in the input box and JS/JQ quickly matches the data that matches the prefix.
For example, if you type seg, you will quickly match the corresponding data entry that begins with the seg .
*数据是json格式的php数组*类似于SegementFault站内邀请别人答题时候输入框的效果
First one, AutoComplete.
http://jqueryui.com/autocomplete/
This should be able to meet your requirements.
The demo on the homepage is the same as what you mean.
Alternative options:
Http://ivaynberg.github.io/select2/index.html
AutoComplete
jQueryUI's AutoComplete
Typeahead.js