I have a textfield which fires an event in a web app, but I'd like the keyboard to close whe开发者_如何学Pythonn the user presses enter. Using jquery to disable usual submission.
Create blur event
To open:
$('input#search').focus();
To close:
$('input#search').blur();
精彩评论