Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- encoding
- iphone
- WebView
- JavaScript
- Eclipse
- jsp
- Database
- spring
- Tomcat
- HTML
- Objective C
- permgen space
- UIWebView
- Android
- 한글
- Memory
- 톰켓
- ios
- C#
- ipad
- 티스토리 초대
- 티스토리 초대장
- jQuery
- 메모리
- udp
- java
- 이클립스
- XML
- MySQL
- 인코딩
Archives
- Today
- Total
목록Enter (1)
suroMind
[JavaScript]jquery dialog enter 누를시 닫히는 현상
출처 : http://codingrecipes.com/jquery-ui-dialog-and-the-enter-return-key-problem http://blog.naver.com/PostView.nhn?blogId=lcoguss&logNo=199048137 jquery dialog로 창을 띄워놓고html의 input 에서 문자 입력 후에 enter를 누를 시 dialog가 닫혀버리는 현상이 있다. 아래처럼 keyCode가 13일때 아무런 처리를 하지 않으면 된다. $('.dialog').find('input').keypress(function(e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { //$(this).parent..
IT분야/Javascript
2013. 12. 15. 15:19