Pergunta

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

Foi útil?

Solução

Create blur event

To open:

$('input#search').focus();

To close:

$('input#search').blur();
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top