gvguichet/static/javascript/lesgv.js

11 lines
494 B
JavaScript
Raw Normal View History

2023-07-17 13:09:53 +02:00
function addResDigitaOrg (id) {
document.getElementById(id).value = document.getElementById(id).value.split("@")[0] + "@resdigita.org";
return document.getElementById(id).value;
}
2023-07-17 12:49:36 +02:00
function addResDigitaOrgIdValue () {
2023-07-17 13:09:53 +02:00
document.getElementById("mail").value = addResDigitaOrg("idvalue");
}
function addResDigitaOrgMail () {
document.getElementById("idvalue").value = addResDigitaOrg("mail");
2023-07-17 12:49:36 +02:00
}
2023-07-17 13:09:53 +02:00
document.getElementById("idvalue").addEventListener("change",addResDigitaOrgIdValue);