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')">
 
PREVIOUS NEXT
Tagged: #javascript #add #data #form
ADD COMMENT
Topic
Name
7+4 =