From 13b2bbffddef84b5be72fcc3908ab190ca970368 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Mon, 17 Jul 2023 12:49:36 +0200 Subject: [PATCH] @resdigita in javascript --- static/javascript/lesgv.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 static/javascript/lesgv.js diff --git a/static/javascript/lesgv.js b/static/javascript/lesgv.js new file mode 100644 index 0000000..f45f31f --- /dev/null +++ b/static/javascript/lesgv.js @@ -0,0 +1,8 @@ +function addResDigitaOrgIdValue () { + inputTextEl = document.getElementById("idvalue"); + value = inputTextEl.value; + value = value.split("@")[0]; + inputTextEl.value = value + "@resdigita.org"; + return value; +} +document.getElementById("idvalue").addEventListener("change",addResDigitaOrgIdValue()); \ No newline at end of file