onchange
This commit is contained in:
parent
c2087afc00
commit
ea61811963
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -42,6 +42,7 @@ function main(init = false) {
|
||||||
input.id = 'color_' + char;
|
input.id = 'color_' + char;
|
||||||
input.value = getRandomColor();
|
input.value = getRandomColor();
|
||||||
sec.appendChild(input);
|
sec.appendChild(input);
|
||||||
|
input.onchange = main;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue