Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <head>
  2. <script>
  3.  
  4. function myFunction(){
  5. var x = document.createElement("LABEL");
  6. var t = document.createTextNode("Titre");
  7. x.appendChild(t);
  8.  
  9. }
  10.  
  11. </script>
  12. </head>
  13.  
  14. <body>
  15. <form id="myForm" method="POST" action="./exam_coordinates" >
  16.  
  17.  
  18. <label for="question"> Question </label> <br>
  19.  
  20. <input class="champ" type="textarea" name="question" id="question" value="" ><br><br>
  21.  
  22.  
  23.  
  24. <label for="ans"> Answers </label> <br>
  25.  
  26. <input type="checkbox" name="ans1" id="ans1" values=""/>
  27. <input type="text" name="ans1" id="ans1" value="" ><br>
  28.  
  29. <input type="checkbox" name="ans2" id="ans2" />
  30. <input type="text" name="ans2" id="ans2" value="" ><br>
  31.  
  32. <br>
  33.  
  34.  
  35. <button onclick="myFunction()">Add proposition</button> <br><br><br>
  36.  
  37.  
  38. <input type="submit" value="submit">
  39.  
  40.  
  41. </form>
  42. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement