-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
33 lines (32 loc) · 1.08 KB
/
main.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
function fSelect() {
let department = document.getElementById('department');
let arrayData = [];
arrayData = [
{ 'id': '1', 'title': 'IT' },
{ 'id': '2', 'title': 'Frontend development' },
{ 'id': '3', 'title': 'Backend development' }
];
fillSelect(department, arrayData);
} fSelect();
function sSelect() {
let department = document.getElementById('department');
let arrayStyle = [];
arrayStyle = {
'select': [{
'width': '300px',
'bGround': 'white',
'fColor': 'black',
'bColor': 'black',
'border': '1px solid rgba(0, 0, 0, 0.25)',
'bRadius': '5px',
'text': 'Please, change option'
}],
'option': [{
'bGround': '#f8f8f8',
'tBorder': '1px solid rgba(0, 0, 0, 0.25)',
'border': '1px solid rgba(0, 0, 0, 0.25)',
'bRadius': '5px'
}]
};
styleSelect(department, arrayStyle);
} sSelect();