blob: 2e6e2de7fb7a324887321f8edee5f12ab555419f (
plain)
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
|
function confirm_delete(frm)
{
var n=0;
quiz = document.getElementsByName('quiz');
for (var i =0;i<quiz.length;i++)
{
if (quiz[i].checked == false)
n = n + 1 ;
}
if(n==quiz.length)
{
alert("Please Select at least one Quiz");
return false;
}
var r = confirm("Are you Sure ?");
if(r==false)
{
for(i=0;i<quiz.length;i++)
{
quiz[i].checked=false;
}
return false;
}
}
function confirm_edit(frm)
{
var n = 0;
quiz = document.getElementsByName('quiz');
for (var i =0;i<quiz.length;i++)
{
if (quiz[i].checked == false)
n = n + 1 ;
}
if(n == quiz.length)
{
alert("Please Select at least one Question");
return false;
}
else
return true;
}
|