コード ```<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Hello!</title> <style> body{ font-size:14pt; font-weight:plain; } h1{ color:white;padding:5px; font-size:24pt;background-color:red; } </style> <script> function clickNow(){ var input1 = document.querySelector('#input1'); var value = input1.value; var msg = document.querySelector('#msg'); } </script> </head> <body> <h1 id="title">Hello!</h1> <p id="msg">ID?</p> <input type="text" id="input1"> <p id="msg">パスワードは?</p> <input type="password" size="12"> <button onclick="clickNow();">Click</button> </body> </html> IDとパスワードを入力したとき文字数を表示するには lengthというのをどうやって使えばいいんですか??
回答1件
あなたの回答
tips
プレビュー