回答編集履歴
1
click が発火しないのか、.membericon1が反応しないのかを切り分けてください
answer
CHANGED
@@ -1,22 +1,14 @@
|
|
1
|
-
以下の
|
1
|
+
以下の追加をしたらどうなりますか?
|
2
2
|
```javascript
|
3
|
-
$(function(){//ここが反応してくれません
|
4
|
-
|
3
|
+
$('.membericon1').on('touchstart',function(){
|
5
|
-
// console.log("きりかえ");
|
6
|
-
console.log("
|
4
|
+
console.log("touchstart1");
|
7
|
-
|
5
|
+
});
|
6
|
+
$('#inputmenu').on('click',function(e){
|
7
|
+
console.log('#inputmenu click');
|
8
|
+
console.log(e.target.outerHTML);
|
8
|
-
|
9
|
+
});
|
9
|
-
//ここから先は普通に反応します
|
10
|
-
$(function(){
|
11
|
-
|
10
|
+
$('#inputmenu').on('touchstart',function(e){
|
12
|
-
|
11
|
+
console.log('#inputmenu touchstart');
|
12
|
+
console.log(e.target.outerHTML);
|
13
|
-
|
13
|
+
});
|
14
|
-
});
|
15
|
-
|
16
|
-
$(function(){
|
17
|
-
$('.membericon3').on('click',function(){
|
18
|
-
// console.log("きりかえ");
|
19
|
-
console.log("きりかえ3");
|
20
|
-
});
|
21
|
-
});
|
22
14
|
```
|