Answers for "js console log input value"

2

js console log input value

<input type="text" placeholder="name" id="uname" />
      <input type="button"value="submit" onclick="send()" />
      let uname = document.querySelector("#uname");
      function send() {
        console.log(uname.value);
      }
Posted by: Guest on August-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language