diff options
author | Frederick Muriuki Muriithi | 2022-07-08 07:32:58 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-19 04:46:09 +0300 |
commit | 7a3a54ec40fac9071a513487602957f8418f163e (patch) | |
tree | 4acec2accb54bcb1c2f9c25c39d8f82c4b81be20 /qc_app/static/js/utils.js | |
parent | a21e759ac7a6b72a3d02814c2bfb26bc4f49204c (diff) | |
download | gn-uploader-7a3a54ec40fac9071a513487602957f8418f163e.tar.gz |
Select the platform (GeneChipId) first
Diffstat (limited to 'qc_app/static/js/utils.js')
-rw-r--r-- | qc_app/static/js/utils.js | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |