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