14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
import {
|
|
cntrls
|
|
} from "./lines-ui";
|
|
|
|
document.getElementById('item').addEventListener('change', function() {
|
|
|
|
const element = document.getElementById('optionHidden');
|
|
|
|
if (cntrls.itemsType.value == false) {
|
|
element.setAttribute('hidden',true);
|
|
} else {
|
|
element.removeAttribute('hidden');
|
|
}
|
|
}); |