Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get value from input field in javascript

function getFieldValue(){
    let fieldValue = document.querySelector("input").value;
    return fieldValue;
}
console.log(fieldValue);
 
PREVIOUS NEXT
Tagged: #input #field #javascript
ADD COMMENT
Topic
Name
5+3 =