Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getting form values in javascript

//Html
<form id="myForm" name="myForm">
    <input id="email" name="email" value="some@email.com" />
</form>

//JS
var x=document.forms["myForm"]["email"].value;
 
PREVIOUS NEXT
Tagged: #form #values #javascript
ADD COMMENT
Topic
Name
2+6 =