Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. </head>
  7. <body>
  8.  
  9. <form>
  10. <div>
  11. <p>
  12. <label>
  13. <input name="item" id="Agree" type="checkbox" class="red"/>
  14. <span>Agree</span>
  15.  
  16. </label>
  17. </p>
  18. </div>
  19.  
  20. <div class="input-field col s12">
  21.  
  22. <button class="btn waves-effect waves-light" type="submit" name="action" id="btn">Generate
  23. <i class="material-icons right">send</i>
  24. </button>
  25.  
  26. </div>
  27. </form>
  28.  
  29. <script>
  30.  
  31. var agreeValue = document.getElementById("Agree")
  32.  
  33.  
  34. document.getElementById("btn").addEventListener("click", addRecord);
  35.  
  36. function addRecord() {
  37. var data = {
  38. agreeValue : Agree.value
  39. };
  40.  
  41.  
  42. google.script.run.appendData(data);
  43. }
  44.  
  45.  
  46.  
  47.  
  48.  
  49. </script>
  50.  
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement