From 7a3a54ec40fac9071a513487602957f8418f163e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 8 Jul 2022 07:32:58 +0300 Subject: Select the platform (GeneChipId) first --- qc_app/static/js/utils.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 qc_app/static/js/utils.js (limited to 'qc_app/static/js/utils.js') diff --git a/qc_app/static/js/utils.js b/qc_app/static/js/utils.js new file mode 100644 index 0000000..045dd47 --- /dev/null +++ b/qc_app/static/js/utils.js @@ -0,0 +1,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); +} -- cgit v1.2.3