-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
56 lines (39 loc) · 1.12 KB
/
script.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//var sel = document.getElementById('typeSelect');
var loop;
var saleLabel =document.getElementsByTagName("sally");
var sels = document.getElementsByTagName("typeSelect");
for(var i = 0, maxI = sels.length; i < maxI; ++i) {
var sel = sels[i];
if(sel == slctFild)
continue; // exclude the current select element
sel.selectedIndex = 0;
};
var loop =0;
function preparePage() {
// used throughout the examples below
// used throughout the examples below
loop++;
loop.onchange = function(){
setTimeout(preparePage, 1000);
}
if (document.getElementById("typeSelect").selectedIndex == "0"){
sally.setAttribute("display","none");
change = "select Index must be 0";
loop++;
loop.onchange = function(){
setTimeout(preparePage, 1000);
}
}
else{
sally.setAttribute=("display","inline-block");
change ="select Index must be 1=<";
loop++;
loop.onchange = function(){
console.log(loop);
setTimeout(preparePage, 1000);
}
};
};window.onload =
function(){
setTimeout(preparePage, 1000);
};