Advertisement
kloentje2

Untitled

Apr 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Belastingaangifte calculator (omzetbelasting)</title>
  4. <script>
  5. function add() {
  6. var form = document.getElementById("form").innerHTML;
  7. var toadd = '<input type="text">';
  8. console.log("Form voor actie "+form);
  9. form += toadd;
  10. console.log("Form na actie "+form);
  11. console.log("Waarde toadd: "+toadd);
  12. }
  13. </script>
  14. </head>
  15.  
  16. <body>
  17. <form id="form">
  18. <input type="text">
  19. </form>
  20. <a onclick="javascript:add();" href="#">Voeg velden toe</a>
  21. </body>
  22.  
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement