+ 1
Display text of text box after pressing submit button using html and javascript. iam not getting output.what is missing?
<HTML> <body> <label> name </label> <label id='text'> </label> <button onclick='document.getElementbyID'('text').txt>submit</button> </body> </html>
3 Antworten
0
<HTML>
  <body>
    <label>name</label>
    <input id="text" />
    <button onclick="document.getElementById('text').InnerText">submit</button>
  </body>
</html>
+ 1
First You should replace the second <label> with <input>



