문제

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.

도움이 되었습니까?

해결책

Create blur event

To open:

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

To close:

$('input#search').blur();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top