From e08668b28f18bcf3364c93ffb97798374d92c653 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 29 Oct 2022 22:19:11 -0700 Subject: [PATCH] Add example usage of enable_on_pageload. --- frontends/ycdl_flask/static/js/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/ycdl_flask/static/js/common.js b/frontends/ycdl_flask/static/js/common.js index 20b1c90..73f0b98 100644 --- a/frontends/ycdl_flask/static/js/common.js +++ b/frontends/ycdl_flask/static/js/common.js @@ -389,6 +389,10 @@ function init_enable_on_pageload(element) To create an input element which is disabled at first, and is enabled when the DOM has completed loading, give it the disabled attribute and the class "enable_on_pageload". + + For example: + + */ element.disabled = false; element.classList.remove("enable_on_pageload");