From 8b0feb2abb86d85215a54b584b341df3720e809f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 29 Oct 2022 22:19:20 -0700 Subject: [PATCH] Add example usage of enable_on_pageload. --- frontends/bringrss_flask/static/js/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/bringrss_flask/static/js/common.js b/frontends/bringrss_flask/static/js/common.js index 20b1c90..73f0b98 100644 --- a/frontends/bringrss_flask/static/js/common.js +++ b/frontends/bringrss_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");