document.getElementsByClassName("wpcf7-forms")[0].addEventListener("change", obsluga);
function obsluga() { var mail = document.getElementsByName("your-email")[0].value; mail = mail.split('@'); document.getElementsByName("addr")[0].value = mail[0]; document.getElementsByName("domain")[0].value = mail[1]; }