aboutsummaryrefslogtreecommitdiff
path: root/qc_app/static/js/utils.js
blob: 045dd47ac7b2b4bf5024809824d41a76cf3ae095 (plain)
1
2
3
4
5
6
7
8
9
10
function remove_children(element) {
    Array.from(element.children).forEach(child => {
	element.removeChild(child);
    });
}

function trigger_change_event(element) {
    evt = new Event("change");
    element.dispatchEvent(evt);
}