回答編集履歴

1

追加

2016/10/05 07:06

投稿

date
date

スコア1820

test CHANGED
@@ -3,3 +3,93 @@
3
3
 
4
4
 
5
5
  この提案にjavascriptがわからないという理由は無しで
6
+
7
+ javascript jquery 例
8
+
9
+ ```html
10
+
11
+ <!doctype html>
12
+
13
+ <html>
14
+
15
+ <head>
16
+
17
+ <meta charset="UTF-8">
18
+
19
+ <title></title>
20
+
21
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
22
+
23
+ <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
24
+
25
+ <script>
26
+
27
+ $(function(){
28
+
29
+ $('#toggle').change(function(){
30
+
31
+ if ($(this).is(':checked')) {
32
+
33
+ $(".ff").show();
34
+
35
+ } else {
36
+
37
+ $(".ff").hide();
38
+
39
+ }
40
+
41
+ });
42
+
43
+ });
44
+
45
+ </script>
46
+
47
+ <style>
48
+
49
+ .ff{
50
+
51
+ display:none;
52
+
53
+ }
54
+
55
+ </style>
56
+
57
+ </head>
58
+
59
+ <body>
60
+
61
+ <table>
62
+
63
+ <tr>
64
+
65
+ <td>
66
+
67
+ <label for="toggle">
68
+
69
+ <input type="checkbox" id="toggle"> Toggle Button
70
+
71
+ </label>
72
+
73
+ <table class="ff">
74
+
75
+ <tr>
76
+
77
+ <td>hello</td>
78
+
79
+ </tr>
80
+
81
+ </table>
82
+
83
+ </td>
84
+
85
+ </tr>
86
+
87
+ </table>
88
+
89
+ </body>
90
+
91
+ </html>
92
+
93
+
94
+
95
+ ```