質問編集履歴
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -79,4 +79,13 @@
|
|
79
79
|
<script src="jQuery/jquery-1.11.2.min.js"></script>
|
80
80
|
<script src="jQuery/jquery.mobile-1.4.5.min.js"></script>
|
81
81
|
<script type="text/javascript" src="js/script.js"></script>
|
82
|
-
```
|
82
|
+
```
|
83
|
+
#追記
|
84
|
+
**<script src="jQuery/jquery.mobile-1.4.5.min.js"></script>**
|
85
|
+
を外すと
|
86
|
+
```javascript
|
87
|
+
$("#radCam1").prop("checked", true);
|
88
|
+
$('.lsCheck').prop("checked",false);
|
89
|
+
```
|
90
|
+
も動作することがわかりました。
|
91
|
+
ですがJQMを使用しなければいけないので外すことはできません。
|
3
script 追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -74,4 +74,9 @@
|
|
74
74
|
<button id="regoBtn" data-inline="true">Register</button>
|
75
75
|
<button id="resetBtn" data-inline="true">Start Again</button>
|
76
76
|
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<script src="jQuery/jquery-1.11.2.min.js"></script>
|
80
|
+
<script src="jQuery/jquery.mobile-1.4.5.min.js"></script>
|
81
|
+
<script type="text/javascript" src="js/script.js"></script>
|
77
82
|
```
|
2
jquery ver 追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
試して見ましたが動作しませんでした、どこが間違っているのでしょうか?
|
10
10
|
|
11
11
|
よろしくお願いいたします。
|
12
|
+
jQueryバージョン : jquery-1.11.2
|
12
13
|
|
13
14
|
```javascript
|
14
15
|
$("#resetBtn").click(function(){
|
1
html修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,24 @@
|
|
18
18
|
});
|
19
19
|
```
|
20
20
|
```html
|
21
|
+
<div data-role="content">
|
22
|
+
<div data-role="main" class="ui-content">
|
23
|
+
|
24
|
+
//テキストボックス部分 リセットされる
|
21
25
|
<div data-role="fieldcontain">
|
26
|
+
<label for="txtName">Name:</label>
|
27
|
+
<input type="text" name="txtName" id="txtName" class="clearBox"/>
|
28
|
+
</div>
|
29
|
+
<div data-role="fieldcontain">
|
30
|
+
<label for="txtEmail">e-Mail:</label>
|
31
|
+
<input type="text" name="txtEmail" id="txtEmail" class="clearBox"/>
|
32
|
+
</div>
|
33
|
+
<div data-role="fieldcontain">
|
34
|
+
<label for="txtConfMail">Confirm e-Mail:</label>
|
35
|
+
<input type="text" name="txtConfMail" id="txtConfMail" class="clearBox"/>
|
36
|
+
</div>
|
37
|
+
// ラジオ リセットされない
|
38
|
+
<div data-role="fieldcontain">
|
22
39
|
<fieldset data-role="controlgroup" data-type="horizontal">
|
23
40
|
<legend>Camera Type</legend>
|
24
41
|
<input type="radio" name="radCam" id="radCam1" class="radCam" checked="checked"/>
|
@@ -29,7 +46,7 @@
|
|
29
46
|
<label for="radCam3">No Camera</label>
|
30
47
|
</fieldset>
|
31
48
|
</div>
|
32
|
-
|
49
|
+
//チェックボックス リセットされない
|
33
50
|
<div data-role="fieldcontain">
|
34
51
|
<fieldset data-role="controlgroup" id=cbInterest>
|
35
52
|
<legend>Interested in:</legend>
|
@@ -47,6 +64,13 @@
|
|
47
64
|
<label for="cbOther">Other</label>
|
48
65
|
</fieldset>
|
49
66
|
</div>
|
67
|
+
|
68
|
+
<div data-role="fieldcontain">
|
69
|
+
<label for="txtOhter">Other Areas:</label>
|
70
|
+
<textarea cols="40" rows="8" name="txtOther" id="txtOther" class="clearBox"></textarea>
|
71
|
+
</div>
|
72
|
+
<p id="erMsgRego" class="erMsg"></p>
|
73
|
+
<button id="regoBtn" data-inline="true">Register</button>
|
50
74
|
<button id="resetBtn" data-inline="true">Start Again</button>
|
51
|
-
|
75
|
+
</div>
|
52
76
|
```
|