Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addEmail = () => {
  2.     impForm = document.createElement("input");
  3.     impForm.className = "form-input";
  4.     impForm.type = "email";
  5.     impForm.placeholder = "nom@exemple.com";
  6.     impForm.name = "invites";
  7.     impForm.defaultValue = "{values.invites}";
  8.     // Left this one alone, since you seem to need to use a string with it:
  9.     impForm.setAttribute("onChange", "{handleChange('invites')}");
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement