-
Notifications
You must be signed in to change notification settings - Fork 0
/
hide.js
30 lines (30 loc) · 827 Bytes
/
hide.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
function unhide(value){
var x = document.getElementById('student_input');
var y = document.getElementById('student_search');
var z = document.getElementById('student_delete');
var a = document.getElementById('student_all');
if(value == 1){
x.style.display = 'block';
y.style.display = 'none';
z.style.display = 'none';
a.style.display = 'none';
}
else if (value == 2) {
x.style.display = 'none';
y.style.display = 'block';
z.style.display = 'none';
a.style.display = 'none';
}
else if (value == 3) {
x.style.display = 'none';
y.style.display = 'none';
z.style.display = 'block';
a.style.display = 'none';
}
else if (value == 4) {
x.style.display = 'none';
y.style.display = 'none';
z.style.display = 'none';
a.style.display = 'block';
}
}