回答編集履歴
1
微調整
test
CHANGED
@@ -11,8 +11,6 @@
|
|
11
11
|
$(function(){
|
12
12
|
|
13
13
|
$('.bootpage a').on('click',function(e){
|
14
|
-
|
15
|
-
e.preventDefault();
|
16
14
|
|
17
15
|
console.log($(this).text());
|
18
16
|
|
@@ -28,7 +26,7 @@
|
|
28
26
|
|
29
27
|
var t=e.target;
|
30
28
|
|
31
|
-
if($(t).closest(".bootpage").length>0){
|
29
|
+
if($(t).closest(".bootpage").length>0 && t.nodeName=="A"){
|
32
30
|
|
33
31
|
e.preventDefault();
|
34
32
|
|
@@ -48,7 +46,7 @@
|
|
48
46
|
|
49
47
|
</script>
|
50
48
|
|
51
|
-
<label><input type="checkbox" name="hoge" value="1">hoge</label>
|
49
|
+
<label><input type="checkbox" name="hoge" value="1" checked>hoge</label>
|
52
50
|
|
53
51
|
<p id="demo_top" class="demo_top">
|
54
52
|
|