Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const nameField = document.querySelector("#elInput_applications_name");
- if (nameField) {
- const firstName = document.querySelector("#elInput_perscom_applicationfield_20");
- const lastName = document.querySelector("#elInput_perscom_applicationfield_21");
- const callback = e => { nameField = `${firstName.value} ${lastName.value}`; };
- [firstName, lastName].map(e => e.addEventListener("blur", callback));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement