Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Offer your exchange:</h1>
- <button onclick = "hello()"> +++ </button>
- <form action="/offer" method="POST" class newTransaction>
- <div id = "1">
- <area> From User Id </area>
- <input type="text" name="fromUserId">
- <area> Value </area>
- <input type="text" name="value${ValueId}$">
- <select id="3" name="namecash${NamecashId}$">
- <option>cash1</option>
- <option>cash2</option>
- <option>cash3</option>
- <option>cash4</option>
- </select>
- <area> To User Id </area>
- <input type="text" name="toUserId">
- <area> From User Id </area>
- <input type="text" name="value${ValueId}$">
- <select id="4" name="namecash${NamecashId}$" >
- <option>cash1</option>
- <option>cash2</option>
- <option>cash3</option>
- <option>cash4</option>
- </select>
- <br/ >
- </div>
- <button type="submit">add this shit</button><br/>
- </form>
- <script>
- let tmp = `
- <area> From User Id </area>
- <input type="text" name="fromUserId">
- <area> Value </area>
- <input type="text" name="value${ValueId}$">
- <select id="3" name="namecash${NamecashId}$">
- <option>cash1</option>
- <option>cash2</option>
- <option>cash3</option>
- <option>cash4</option>
- </select>
- <area> To User Id </area>
- <input type="text" name="toUserId">
- <area> From User Id </area>
- <input type="text" name="value${ValueId}$">
- <select id="4" name="namecash${NamecashId}$" >
- <option>cash1</option>
- <option>cash2</option>
- <option>cash3</option>
- <option>cash4</option>
- </select>
- <br/>`
- function hello () {
- document.getElementById("1").innerHTML += tmp
- }
- </script>
- <script>
- const ValueId = createId();
- const NamecashId = createId();
- function createId(){
- var val =0;
- return function() {
- return ++val;
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement