internet_programming/laba2/ip laba2/js/option.js

14 lines
313 B
JavaScript
Raw Permalink Normal View History

2023-12-22 14:06:40 +04:00
import {
2024-01-15 11:48:11 +04:00
cntrls
2023-12-22 14:06:40 +04:00
} 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');
}
});