Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <h1>Offer your exchange:</h1>
  2. <button onclick = "hello()"> +++ </button>
  3. <form action="/offer" method="POST" class newTransaction>
  4. <div id = "1">
  5.  
  6. <area> From User Id </area>
  7. <input type="text" name="fromUserId">
  8. <area> Value </area>
  9. <input type="text" name="value${ValueId}$">
  10. <select id="3" name="namecash${NamecashId}$">
  11. <option>cash1</option>
  12. <option>cash2</option>
  13. <option>cash3</option>
  14. <option>cash4</option>
  15. </select>
  16. <area> To User Id </area>
  17. <input type="text" name="toUserId">
  18. <area> From User Id </area>
  19. <input type="text" name="value${ValueId}$">
  20. <select id="4" name="namecash${NamecashId}$" >
  21. <option>cash1</option>
  22. <option>cash2</option>
  23. <option>cash3</option>
  24. <option>cash4</option>
  25. </select>
  26.  
  27. <br/ >
  28. </div>
  29. <button type="submit">add this shit</button><br/>
  30. </form>
  31.  
  32.  
  33.  
  34. <script>
  35. let tmp = `
  36.  
  37. <area> From User Id </area>
  38. <input type="text" name="fromUserId">
  39. <area> Value </area>
  40. <input type="text" name="value${ValueId}$">
  41. <select id="3" name="namecash${NamecashId}$">
  42. <option>cash1</option>
  43. <option>cash2</option>
  44. <option>cash3</option>
  45. <option>cash4</option>
  46. </select>
  47. <area> To User Id </area>
  48. <input type="text" name="toUserId">
  49. <area> From User Id </area>
  50. <input type="text" name="value${ValueId}$">
  51. <select id="4" name="namecash${NamecashId}$" >
  52. <option>cash1</option>
  53. <option>cash2</option>
  54. <option>cash3</option>
  55. <option>cash4</option>
  56. </select>
  57.  
  58.  
  59. <br/>`
  60.  
  61. function hello () {
  62. document.getElementById("1").innerHTML += tmp
  63. }
  64.  
  65. </script>
  66.  
  67.  
  68. <script>
  69. const ValueId = createId();
  70. const NamecashId = createId();
  71. function createId(){
  72. var val =0;
  73. return function() {
  74. return ++val;
  75. }
  76. }
  77. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement