Guest User

Untitled

a guest
Mar 18th, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. User ID : [_______]
  2. Name : [_______]
  3. Email : [_______]@example.edu.com
  4.  
  5. [Register Button]
  6.  
  7. <!DOCTYPE html>
  8. <html>
  9. <body>
  10.  
  11. <p>Click the button to display the value of the value attribute of the hidden input field.</p>
  12.  
  13. <input type="" id="myInput" value="" placeholder="enter email">@example.com
  14. <br>
  15.  
  16. <button onclick="myFunction()">send</button>
  17.  
  18. <p id="demo"></p>
  19.  
  20. <script>
  21. function myFunction() {
  22.  
  23. var y = '@example.com';
  24. var x =
  25. document.getElementById("myInput").value;
  26. var z = x + y;
  27.  
  28. document.getElementById("demo").innerHTML = z;
  29. }
  30. </script>
  31.  
  32. </body>
  33. </html>
Add Comment
Please, Sign In to add comment