@resdigita in javascript

This commit is contained in:
Chris Mann 2023-07-17 12:49:36 +02:00
parent 5a84380979
commit 13b2bbffdd

View file

@ -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());