Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get form inputs

var inputs = document.getElementById("my-form").elements;
var inputByIndex = inputs[0];
var inputByName = inputs["username"];
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #form #inputs
ADD COMMENT
Topic
Name
1+7 =