forked from ioune1993/oscareducation
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.html
More file actions
108 lines (70 loc) · 1.63 KB
/
test.html
File metadata and controls
108 lines (70 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<head> Questions</head>
<body>
La ressource est-elle complète ?
<FORM method="POST" id="question1"
>
<INPUT TYPE="RADIO" VALUE="A" NAME="cc">
A. Très complète<BR>
<INPUT TYPE="RADIO" VALUE="B" NAME="cc">
B. Assez complète <BR>
<INPUT TYPE="RADIO" VALUE="C" NAME="cc">
C. Pas complète <BR>
</FORM>
La ressource est-elle assez compréhensible ?
<FORM method="POST" id="question2"
>
<INPUT TYPE="RADIO" VALUE="A" NAME="dd">
A. Très compréhensible<BR>
<INPUT TYPE="RADIO" VALUE="B" NAME="dd">
B. Assez compréhensible <BR>
<INPUT TYPE="RADIO" VALUE="C" NAME="dd">
C. Pas compréhensible <BR>
</FORM>
La ressource est utile ?
<FORM method="POST" id="qustion3"
>
<INPUT TYPE="RADIO" VALUE="A" NAME="ee">
A. Très utile<BR>
<INPUT TYPE="RADIO" VALUE="B" NAME="ee">
B. Assez utile <BR>
<INPUT TYPE="RADIO" VALUE="C" NAME="ee">
C. Pas utile <BR>
</FORM>
<button type='button' id='buttonSubmit'> Enregistrer </button>
</body>
<script src="/home/lmint/Documents/oscareducation/oscar/static/js/jquery.min.js"></script>
<SCRIPT language="JavaScript"
type="text/javascript">
<!--
//
// Documentation:
// http://chami.com/tips/javascript/
//
$(function() {
$('#buttonSubmit').on('click', function() {
var i = 0;
var q = $('#question1')
var s = "?"
for(;i<$('#question1').elements.length;i++)
{
alert(i)
if ($('#question1').elements[i].checked)
{
s = $('#question1').elements[i].value;
}
}
if("?" == s)
{
alert("Please make a selection.");
return false;
}
else
{
alert("Congrats you submitted")
}
});
});
//-->
</SCRIPT>
</html>