Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add data to form

<input type="text" id="example">
<input type="submit" value="Submit" onclick="document.getElementById('example').setAttribute('value','My default value')">
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #add #data #form
ADD COMMENT
Topic
Name
2+5 =