Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

pass text from input field to javascript function

<input name="textbox1" id="textbox1" type="text" />
<button type="submit" onclick="javascript:myfunction(document.getElementById('textbox1').value)" >Submit</button>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #text #input #field #javascript #function
ADD COMMENT
Topic
Name
8+7 =