Guest User

Untitled

a guest
Mar 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <form>
  2. <input type="text" name="First" value="First Name">
  3. <input type="text" name="Last" value="Last Name" >
  4. <div class="phones">
  5. <input type="text" name="Telephone" value="Telephone" ><br>
  6. <input type="text" name="Telephone" value="Telephone" >
  7. </div>
  8. <br>
  9. <input type="submit" name="" value="Add">
  10. </form>
  11.  
  12. var inputs = document.getElementsByTagName('form')[0];
  13.  
  14. var cloneInp;
  15. function iff() {
  16. cloneInp = inputs[2].cloneNode(true);
  17. inputs[2].after(cloneInp)
  18. }
  19.  
  20. function remov() {
  21. inputs.removeChild(inputs[0]);
  22. }
Add Comment
Please, Sign In to add comment