Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
      }
 
PREVIOUS NEXT
Tagged: #js #console #log #input
ADD COMMENT
Topic
Name
5+1 =