Question

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.

Was it helpful?

Solution

Create blur event

To open:

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

To close:

$('input#search').blur();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top