当前位置: 动力学知识库 > 问答 > 编程问答 >

json - Struts2 Jquery Plugin : proposal for an autocompleter doesn't reduce

问题描述:

My autocompleter

<sj:autocompleter

id="auto"

name="credit"

href="%{url}"

list="objectsList"

listValue="name"

listKey="id"

delay="50"

loadMinimumCount="2"

forceValidOption="false"

onChangeTopics="autocompleteChange"

onFocusTopics="autocompleteFocus"

onSelectTopics="autocompleteSelect"

/>

recognizes the json source but when typing a value it highlights the result without reducing the list (700 members long so it's impossible to use).

网友答案:

This works implementing a term attribute in the json action and filtering the result on it.

分享给朋友:
您可能感兴趣的文章:
随机阅读: