Guest User

Untitled

a guest
Feb 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <form>
  2. <input id="Name" type="text" name="Name">
  3. <input id="Ausgabe" type="submit" value="Ausgabe">
  4. <p id="yournamehas" class="ptags">Your Name has:</p>
  5. <p id="lname" class="ptags"></p>
  6. <p id="Characters" class="ptags"> Characters</p>
  7. </form>
  8.  
  9. function namelength() {
  10. var Namee = document.getElementById('#Name').value.length
  11. document.getElementById('lname').innerHTML = Namee
  12. };
  13.  
  14. function ausgabe() {
  15. $("#Ausgabe").on("click",function(){
  16. {
  17. document.getElementById("#Ausgabe").innerHTML =
  18. namelength();
  19. }
  20. })
  21. };
Add Comment
Please, Sign In to add comment