programming-examples/js/Htmldom/Store and display the values of text boxes of a form.js

11 lines
280 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
function getFormvalue()
{
var x=document.getElementById("form1");
for (var i=0;i<x.length;i++)
{
if (x.elements[i].value!='Submit')
{
console.log(x.elements[i].value);
}
}
}