开发者

Enter key twice on scriptaculous autocompleter

The autocompleter in scriptaculous has been implemented in such a way that you need to hit th开发者_如何学运维e enter key twice in order to perform the submit action. One for selecting from or hiding the autocomplete list, and one for submitting.

How do I make the autocompleter to submit on first enter key instead?


Create callback for afterUpdateElement and place form submit in the end of it. If it wouldn't work for you do the same thing for updateElement.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜