-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditq.js
34 lines (30 loc) · 1.03 KB
/
editq.js
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
// -------------------- Edit quiz form -------------------------------------
var form = document.querySelector("#register_form");
var input = form.querySelectorAll("INPUT");
var addBtn = document.querySelector("#quiz_edit");
var model= document.querySelector(".model");
var closeBtn = document.querySelector(".close-icon")
addBtn.onclick = function()
{
model.classList.add("active");
}
closeBtn.addEventListener("click", ()=>
{
model.classList.remove("active");
// var i;
// for(i=0;i<input.length;i++)
// {
// input[i].value = " ";
// }
})
// <th>No</th>
// <th>Name</th>
// <th>E-mail</th>
// <th>Subject</th>
// <th>Score</th>
var userQuiz = [];
var no = document.querySelector("#id_no");
var nm = document.querySelector("#U_name");
var mail =document.querySelector("#mail");
var subject = document.querySelector("#subject");
var form = document.querySelector("#register_form");