質問編集履歴
1
ソースコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,10 +4,23 @@
|
|
4
4
|
直接入力時は送信時に個別でエラー対応するしかないのでしょうか?
|
5
5
|
|
6
6
|
```HTML
|
7
|
+
<html lang="ja">
|
8
|
+
<script type="text/javascript">
|
9
|
+
function fnTest() {
|
10
|
+
document.F1.submit();
|
11
|
+
submitbtn.click();
|
12
|
+
}
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<form name="F1" class="testForm" id="TestForm" action="./test2.php" method="post">
|
7
|
-
<div id="DateTime">
|
16
|
+
<div id="DateTime">
|
8
|
-
<label id="DateTimeLabel" for="SetDay">日時</label><br>
|
17
|
+
<label id="DateTimeLabel" for="SetDay">日時</label><br>
|
9
|
-
<input type="datetime-local" name="setDay" id="SetDay" min="2017-06-01T08:30" max="2100-06-01T08:30" required>
|
18
|
+
<input type="datetime-local" name="setDay" id="SetDay" min="2017-06-01T08:30" max="2100-06-01T08:30" required>
|
19
|
+
</div><br>
|
10
|
-
</
|
20
|
+
</form>
|
21
|
+
|
22
|
+
<input class="sendBtn" id="SendBtn" type="button" value="送信" onclick="fnTest()">
|
23
|
+
</html>
|
11
24
|
```
|
12
25
|
|
13
26
|
上記のコードの場合、カレンダーからであれば2017年以前と2100年以降は選択できないのですが、
|