开发者

Enter key twice on scriptaculous autocompleter

开发者 https://www.devze.com 2023-02-20 12:03 出处:网络
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 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

精彩评论

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