回答編集履歴

1

説明不足

2016/12/09 07:08

投稿

mukkun
mukkun

スコア882

test CHANGED
@@ -3,6 +3,8 @@
3
3
  <input type="submit" id="leftSearch" value="検索" class="btn btn-primary btn-sm" onkeypress="return onSearch(event.keyCode);" onclick="return onSearch()" />
4
4
 
5
5
  ```
6
+
7
+ 「onkeypress」でキーの検出ができます。
6
8
 
7
9
 
8
10