Created
May 10, 2012 13:28
-
-
Save yuheiomori/2652992 to your computer and use it in GitHub Desktop.
Enterでsubmitさせない
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 検索ワード入力フィールドでEnterを押下してもSubmitさせない | |
$('input[name=search_query]').keypress(function(e){ | |
return !((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment