回答編集履歴
1
click が発火しないのか、.membericon1が反応しないのかを切り分けてください
test
CHANGED
@@ -1,43 +1,27 @@
|
|
1
|
-
以下の
|
1
|
+
以下の追加をしたらどうなりますか?
|
2
2
|
|
3
3
|
```javascript
|
4
4
|
|
5
|
-
$(function(){
|
5
|
+
$('.membericon1').on('touchstart',function(){
|
6
6
|
|
7
|
-
|
7
|
+
console.log("touchstart1");
|
8
8
|
|
9
|
-
|
9
|
+
});
|
10
10
|
|
11
|
-
|
11
|
+
$('#inputmenu').on('click',function(e){
|
12
12
|
|
13
|
-
|
13
|
+
console.log('#inputmenu click');
|
14
14
|
|
15
|
-
|
15
|
+
console.log(e.target.outerHTML);
|
16
16
|
|
17
|
-
|
17
|
+
});
|
18
18
|
|
19
|
-
$(function(){
|
19
|
+
$('#inputmenu').on('touchstart',function(e){
|
20
20
|
|
21
|
-
|
21
|
+
console.log('#inputmenu touchstart');
|
22
22
|
|
23
|
-
|
23
|
+
console.log(e.target.outerHTML);
|
24
24
|
|
25
|
-
});
|
25
|
+
});
|
26
|
-
|
27
|
-
});
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
$(function(){
|
32
|
-
|
33
|
-
$('.membericon3').on('click',function(){
|
34
|
-
|
35
|
-
// console.log("きりかえ");
|
36
|
-
|
37
|
-
console.log("きりかえ3");
|
38
|
-
|
39
|
-
});
|
40
|
-
|
41
|
-
});
|
42
26
|
|
43
27
|
```
|