tags:

views:

47

answers:

2

I have a textfield which fires an event in a web app, but I'd like the keyboard to close when the use presses enter. Using jquery to disable usual subission.

+1  A: 

Aha... was simple.

create empty link -> use $("emptylink").focus() to move focus away from text box.

minikomi
A: 

Create blur event

$('input#search').focus(); //to Open

$('input#search').blur(); //to close

Adam Robertson